Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Registry handling Pin
CPallini14-Nov-08 0:29
mveCPallini14-Nov-08 0:29 
Questionhow will i be able to show bitmap and text in a list box? Pin
puppya13-Nov-08 23:32
puppya13-Nov-08 23:32 
AnswerRe: how will i be able to show bitmap and text in a list box? Pin
CPallini13-Nov-08 23:53
mveCPallini13-Nov-08 23:53 
QuestionSample application in VC++ using XML. Pin
V K 213-Nov-08 23:32
V K 213-Nov-08 23:32 
AnswerRe: Sample application in VC++ using XML. Pin
CPallini13-Nov-08 23:49
mveCPallini13-Nov-08 23:49 
QuestionDynamic detection of UPnP devices? Pin
suren61213-Nov-08 23:31
suren61213-Nov-08 23:31 
Questionplease how to change this program for read all size for AVI file? Pin
mrlog13-Nov-08 23:11
mrlog13-Nov-08 23:11 
QuestionUnable to use SetDllDirectory call in VS2005 - C++ Pin
LindeA13-Nov-08 22:25
LindeA13-Nov-08 22:25 
Hi,

I try to use SetDllDirectory call, but fail to compile.
Platform = WinXP SP2 ; VS2005 SP1

#define _WIN32_WINNT 0x0502
#include "windows.h"
<...>
SetDllDirectory(NULL);

results in error C3861: 'SetDllDirectory': identifier not found

When I literally copy the defs from winbase.h like this :

#include "windows.h" // ( for SetDllDirectory call )
WINBASEAPI
BOOL
WINAPI
SetDllDirectoryA(
__in_opt LPCSTR lpPathName
);
#define SetDllDirectory SetDllDirectoryA

it compiles ok, but results in an unresolved external
error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall SetDllDirectoryA(char const *)"

However, I do add kernel32.lib to the linker input.

How should I use this api then ?
Thanks in advance

Linde
AnswerRe: Unable to use SetDllDirectory call in VS2005 - C++ Pin
CPallini13-Nov-08 22:41
mveCPallini13-Nov-08 22:41 
AnswerRe: Unable to use SetDllDirectory call in VS2005 - C++ Pin
LindeA13-Nov-08 23:11
LindeA13-Nov-08 23:11 
AnswerRe: Unable to use SetDllDirectory call in VS2005 - C++ Pin
LindeA14-Nov-08 3:31
LindeA14-Nov-08 3:31 
Questionhow can i display icons or bimaps on status bar on a dialog based application? Pin
puppya13-Nov-08 21:55
puppya13-Nov-08 21:55 
AnswerRe: how can i display icons or bimaps on status bar on a dialog based application? Pin
Roger Stoltz13-Nov-08 23:34
Roger Stoltz13-Nov-08 23:34 
Questionhow can i add and display status bar for a dialog based application? Pin
puppya13-Nov-08 21:16
puppya13-Nov-08 21:16 
AnswerRe: how can i add and display status bar for a dialog based application? Pin
Saurabh.Garg13-Nov-08 21:22
Saurabh.Garg13-Nov-08 21:22 
QuestionCRichEditCtrl not apble to display Chinese arabic and other language characters Pin
Dhiraj kumar Saini13-Nov-08 21:03
Dhiraj kumar Saini13-Nov-08 21:03 
AnswerRe: CRichEditCtrl not apble to display Chinese arabic and other language characters Pin
Iain Clarke, Warrior Programmer13-Nov-08 22:55
Iain Clarke, Warrior Programmer13-Nov-08 22:55 
QuestionByte array to image Pin
tanmay.kol13-Nov-08 20:04
tanmay.kol13-Nov-08 20:04 
AnswerRe: Byte array to image Pin
Saurabh.Garg13-Nov-08 21:19
Saurabh.Garg13-Nov-08 21:19 
GeneralRe: Byte array to image Pin
tanmay.kol13-Nov-08 21:36
tanmay.kol13-Nov-08 21:36 
GeneralRe: Byte array to image Pin
Iain Clarke, Warrior Programmer13-Nov-08 23:05
Iain Clarke, Warrior Programmer13-Nov-08 23:05 
QuestionRadio Button Transparency Problem [modified] Pin
rkshdixit13-Nov-08 19:46
rkshdixit13-Nov-08 19:46 
AnswerRe: Radio Button Transparency Problem Pin
Code-o-mat14-Nov-08 6:49
Code-o-mat14-Nov-08 6:49 
GeneralRe: Radio Button Transparency Problem Pin
rkshdixit17-Nov-08 19:09
rkshdixit17-Nov-08 19:09 
GeneralRe: Radio Button Transparency Problem Pin
Code-o-mat18-Nov-08 2:17
Code-o-mat18-Nov-08 2:17 

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.