Link to home
Start Free TrialLog in
Avatar of lucidity
lucidity

asked on

Tlink sample in MFC

I have the Tlink sample from the Platform SDK, I can get it to work in its own console project with no windows. I am trying to to get this code to compile in a Dialog Based App Wizard app. I have been playing with all the settings but to no avail, is it possible to run this code within MFC. or can I specify not to compile the tlink specific file not in MFC, I've tried many combinations but none seem to work. (not to mention the pulldown "how your program links to MFC is greyed out")

Should I do this in a DLL?

Anyway, If someone has any input let me know.
Avatar of RONSLOW
RONSLOW

Generate a dialog-based app.

The best place to put the code you want to test is in OnInitDialog.

I'll check out TLINK sample and give you further info.

I cannot find a tlink example in the SDK.  What does it do?  What area of the SDK samples is it in?  Are you sure that is called Tlink?
Avatar of lucidity

ASKER

its in the Samples\SDKTool\Tlist directory, sorry... TList
Sorry I guess I misspelled it the first time

appologies

Jason
ASKER CERTIFIED SOLUTION
Avatar of RONSLOW
RONSLOW

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
its a little more complicated than that I'm afraid. but I did figure in out myself. I have to go in a specify not to use pre-compiled headers for the Tlink common.h and common.c then put in type conversions for all the (void *) conversions, like HANDEL to HMODULE blah blah, anyway, if anyone wants the code email jason@themediaco.com.
Glad you worked it out .. it usually isn't to difficult to convert a console app to a dialog app - just time consuming.

thats the stupidist answer I have ever heard. I have the same same I got it to work in MFC with only minor changes.
eh?
same sample. Tlink...
"thats the stupidist answer I have ever heard"

What do you mean stupid?