Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPassing multiple parameters to a thread Pin
jonsey298476-Feb-08 9:55
jonsey298476-Feb-08 9:55 
GeneralRe: Passing multiple parameters to a thread Pin
Mark Salsbery6-Feb-08 10:13
Mark Salsbery6-Feb-08 10:13 
GeneralRe: Passing multiple parameters to a thread Pin
jonsey298476-Feb-08 12:07
jonsey298476-Feb-08 12:07 
GeneralRe: Passing multiple parameters to a thread Pin
Mark Salsbery6-Feb-08 12:30
Mark Salsbery6-Feb-08 12:30 
GeneralRe: Passing multiple parameters to a thread Pin
Cedric Moonen6-Feb-08 20:18
Cedric Moonen6-Feb-08 20:18 
GeneralRe: Passing multiple parameters to a thread Pin
CPallini6-Feb-08 21:00
mveCPallini6-Feb-08 21:00 
GeneralRe: Passing multiple parameters to a thread Pin
Mark Salsbery7-Feb-08 5:31
Mark Salsbery7-Feb-08 5:31 
GeneralRe: Passing multiple parameters to a thread Pin
Cedric Moonen7-Feb-08 7:37
Cedric Moonen7-Feb-08 7:37 
GeneralRe: Passing multiple parameters to a thread Pin
Mark Salsbery7-Feb-08 7:54
Mark Salsbery7-Feb-08 7:54 
GeneralRe: Passing multiple parameters to a thread [Solved] Pin
jonsey298479-Feb-08 0:17
jonsey298479-Feb-08 0:17 
GeneralRe: Passing multiple parameters to a thread, best practices Pin
jonsey298479-Feb-08 0:29
jonsey298479-Feb-08 0:29 
QuestionXMLHttpRequest POST message flow. Pin
Neville Franks6-Feb-08 9:25
Neville Franks6-Feb-08 9:25 
GeneralRe: XMLHttpRequest POST message flow. Pin
led mike8-Feb-08 8:41
led mike8-Feb-08 8:41 
GeneralRe: XMLHttpRequest POST message flow. Pin
Neville Franks8-Feb-08 9:53
Neville Franks8-Feb-08 9:53 
GeneralRe: XMLHttpRequest POST message flow. Pin
led mike8-Feb-08 10:10
led mike8-Feb-08 10:10 
GeneralRe: XMLHttpRequest POST message flow. Pin
Neville Franks8-Feb-08 10:56
Neville Franks8-Feb-08 10:56 
GeneralRe: XMLHttpRequest POST message flow. Pin
led mike8-Feb-08 11:16
led mike8-Feb-08 11:16 
GeneralRe: XMLHttpRequest POST message flow. Pin
Neville Franks8-Feb-08 12:14
Neville Franks8-Feb-08 12:14 
Generalcalling code with MFC in non MFC environment Pin
act_x6-Feb-08 8:16
act_x6-Feb-08 8:16 
I am developing a COM based exe that needs some already available functionality ( which exists in the form a static library using MFC ( MFC statically linked ) ). The API's exposed by the static library use primitive data types such as int , unsigned char etc .


However when I include the static library in the COM project, it gives me a linker error about some CString's used .

This is how the code is organized


static library header file mystatic.h
int LibFunc1( int in, char *out) ;
static library source file mystatic.cpp
int LibFunc1( int in, char *out) <br />
{<br />
<br />
   .. <br />
   CString s = "Hello"; <br />
}




Com Component using static library
#include "mystatic.h"<br />
<br />
<br />
..<br />
..<br />
LibFunc1(x, y)



I am wondering if there is a better way of re-using this as I dont want to rewrite the static library logic .

Help is appreciated.

Engineering is the effort !

GeneralRe: calling code with MFC in non MFC environment Pin
Mark Salsbery6-Feb-08 8:48
Mark Salsbery6-Feb-08 8:48 
GeneralRe: calling code with MFC in non MFC environment Pin
act_x6-Feb-08 8:51
act_x6-Feb-08 8:51 
GeneralRe: calling code with MFC in non MFC environment Pin
act_x6-Feb-08 8:52
act_x6-Feb-08 8:52 
GeneralRe: calling code with MFC in non MFC environment Pin
Mark Salsbery6-Feb-08 9:00
Mark Salsbery6-Feb-08 9:00 
GeneralNamedpipe communication Pin
harsha u6-Feb-08 5:52
harsha u6-Feb-08 5:52 
GeneralRe: Namedpipe communication Pin
Mark Salsbery6-Feb-08 6:09
Mark Salsbery6-Feb-08 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.