Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: regarding project!! Pin
rowdy_vc++26-Feb-08 1:03
rowdy_vc++26-Feb-08 1:03 
GeneralRe: regarding project!! Pin
Rajkumar R26-Feb-08 1:10
Rajkumar R26-Feb-08 1:10 
GeneralRe: regarding project!! Pin
Maxwell Chen26-Feb-08 4:10
Maxwell Chen26-Feb-08 4:10 
QuestionRe: regarding project!! Pin
Rajkumar R26-Feb-08 5:07
Rajkumar R26-Feb-08 5:07 
GeneralRe: regarding project!! Pin
Maxwell Chen26-Feb-08 6:36
Maxwell Chen26-Feb-08 6:36 
GeneralRe: regarding project!! Pin
Maxwell Chen26-Feb-08 1:00
Maxwell Chen26-Feb-08 1:00 
GeneralRe: regarding project!! Pin
rowdy_vc++26-Feb-08 1:14
rowdy_vc++26-Feb-08 1:14 
GeneralDLL found with VS2003 but not VS2005 Pin
Merlin Tintin26-Feb-08 0:10
Merlin Tintin26-Feb-08 0:10 
Hello,

I have a great problem that move the brain of all my team. We have developped a DLL with VS2003 in C++ and a test program to test this DLL (a) - Win32 Console application. The DLL (a) uses other DLL (b). It is working fine (on XP, and Windows Server 2003)

Now I have a new version of DLL (b), so I have migrate my DLL (a) with VS2005. I've tested it and it's working fine on some PC but not on some ohter. Work on some XP machine, but never Windows Server 2003. PC where it is working fine have VS2003, VS2005 but my PC have both VS and it does not work. One more thing, I cannot compile the new solution VS2005 of the DLL (a).

Here is some code of my test program:

typedef LPCSTR DLLDIR (__stdcall *DllPlay) (LPCSTR name, LPCSTR file, ...);<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	DllPlay playDll;<br />
	HINSTANCE hDLL;<br />
	hDLL = LoadLibrary("ReplayBox.dll");<br />
	if (hDLL!=NULL)<br />
	{<br />
		playDll = (DllPlay) GetProcAddress(hstreamDLL, "?Play@@YGPB0K0H_NHH@Z"); 								                        <br />
		if (playDll!=NULL)<br />
		{<br />
			printf("Play found\n");<br />
			result = (playDll)("myLogin","machin.wav", ...);<br />
			printf("result : %s",result);						<br />
		}<br />
		else<br />
		{<br />
			printf("Play not found\n");<br />
		}<br />
	}<br />
	else<br />
	{<br />
		printf("DLL not found !!!\n");		<- ERROR : GO HERE WITH VS2005 DLL !!<br />
	}	<br />
}



When it's failed, it is due to the fact that my DLL (a) is not found. It could come also from one of the depenedency of DLL (a) with DLL (b). All DLL and test application are in the same directory.

I do not undestand why it's not working on some machine. Help ? Advice ?

La Richesse & la Gloire ne griseront jamais que les temples

GeneralRe: DLL found with VS2003 but not VS2005 Pin
Iain Clarke, Warrior Programmer26-Feb-08 0:45
Iain Clarke, Warrior Programmer26-Feb-08 0:45 
QuestionRe: DLL found with VS2003 but not VS2005 Pin
Rajkumar R26-Feb-08 0:52
Rajkumar R26-Feb-08 0:52 
GeneralRe: DLL found with VS2003 but not VS2005 Pin
Iain Clarke, Warrior Programmer26-Feb-08 1:01
Iain Clarke, Warrior Programmer26-Feb-08 1:01 
QuestionRe: DLL found with VS2003 but not VS2005 Pin
Rajkumar R26-Feb-08 0:56
Rajkumar R26-Feb-08 0:56 
GeneralRe: DLL found with VS2003 but not VS2005 Pin
Merlin Tintin26-Feb-08 1:39
Merlin Tintin26-Feb-08 1:39 
GeneralRe: DLL found with VS2003 but not VS2005 Pin
Rajkumar R26-Feb-08 1:49
Rajkumar R26-Feb-08 1:49 
GeneralRe: DLL found with VS2003 but not VS2005 Pin
Merlin Tintin26-Feb-08 21:22
Merlin Tintin26-Feb-08 21:22 
Generalstring operation and related exception Pin
George_George25-Feb-08 23:47
George_George25-Feb-08 23:47 
Generalbasic_string constructor Pin
George_George25-Feb-08 23:29
George_George25-Feb-08 23:29 
GeneralRe: basic_string constructor Pin
Jeet_IT_in25-Feb-08 23:44
Jeet_IT_in25-Feb-08 23:44 
GeneralRe: basic_string constructor Pin
George_George26-Feb-08 13:57
George_George26-Feb-08 13:57 
GeneralRe: basic_string constructor Pin
Maxwell Chen26-Feb-08 0:38
Maxwell Chen26-Feb-08 0:38 
GeneralRe: basic_string constructor Pin
George_George26-Feb-08 14:03
George_George26-Feb-08 14:03 
GeneralRe: basic_string constructor Pin
Rajkumar R26-Feb-08 1:13
Rajkumar R26-Feb-08 1:13 
GeneralRe: basic_string constructor Pin
George_George26-Feb-08 14:04
George_George26-Feb-08 14:04 
GeneralProblem in Closing a file window. Pin
Sanjay K25-Feb-08 23:09
Sanjay K25-Feb-08 23:09 
GeneralRe: Problem in Closing a file window. Pin
ramana.g25-Feb-08 23:33
ramana.g25-Feb-08 23:33 

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.