Solved

Tlink sample in MFC

Posted on 1998-04-28
10
312 Views
Last Modified: 2013-11-19
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.
0
Comment
Question by:lucidity
  • 6
  • 4
10 Comments
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1304288
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.

0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1304289
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?
0
 
LVL 2

Author Comment

by:lucidity
ID: 1304290
its in the Samples\SDKTool\Tlist directory, sorry... TList
Sorry I guess I misspelled it the first time

appologies

Jason
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 1304291
First create a dialog that has a list box to hold the output and an OK button (don't need cancel).  Create a CListBox control variable with class wizard

In your OnInitDialog, do the code from main (without command arg checks)

Change the PrintTask function so that it adds the info to the list control instead of printing it.

That's about it.

Give it a go and I can help you further with other problems

0
 
LVL 2

Author Comment

by:lucidity
ID: 1304292
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.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 10

Expert Comment

by:RONSLOW
ID: 1304293
Glad you worked it out .. it usually isn't to difficult to convert a console app to a dialog app - just time consuming.

0
 
LVL 2

Author Comment

by:lucidity
ID: 1304294
thats the stupidist answer I have ever heard. I have the same same I got it to work in MFC with only minor changes.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1304295
eh?
0
 
LVL 2

Author Comment

by:lucidity
ID: 1304296
same sample. Tlink...
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 1304297
"thats the stupidist answer I have ever heard"

What do you mean stupid?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now