Click here to Skip to main content
15,909,827 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to read text from a status bar (CStatus) of another application ? Pin
Hadi Dayvary14-Nov-09 4:32
professionalHadi Dayvary14-Nov-09 4:32 
GeneralRe: How to read text from a status bar (CStatus) of another application ? Pin
hongheo7614-Nov-09 4:38
hongheo7614-Nov-09 4:38 
Questionre:Using waitformultipleobjects? Pin
Alan Kurlansky13-Nov-09 8:56
Alan Kurlansky13-Nov-09 8:56 
AnswerRe: re:Using waitformultipleobjects? Pin
«_Superman_»13-Nov-09 9:08
professional«_Superman_»13-Nov-09 9:08 
GeneralRe: re:Using waitformultipleobjects? Pin
Alan Kurlansky13-Nov-09 9:31
Alan Kurlansky13-Nov-09 9:31 
GeneralRe: re:Using waitformultipleobjects? Pin
«_Superman_»13-Nov-09 9:52
professional«_Superman_»13-Nov-09 9:52 
GeneralRe: re:Using waitformultipleobjects? Pin
Alan Kurlansky13-Nov-09 10:28
Alan Kurlansky13-Nov-09 10:28 
QuestionThe SHCreateDirectoryEx function. Pin
iMikki13-Nov-09 6:47
iMikki13-Nov-09 6:47 
Hi guys,
Here I am again... But now with another problem :p

SHCreateDirectoryEx(NULL, "c:\\text", NULL); gives me the following error:

1>d:\app2\app2\Form1.h(302) : error C2664: 'SHCreateDirectoryExW' : cannot convert parameter 2 from 'const char [8]' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


I found that _T("..") should work; giving me the following error:
1>App2.obj : error LNK2028: unresolved token (0A000028) "extern "C" int __stdcall SHCreateDirectoryExW(struct HWND__ *,wchar_t const *,struct _SECURITY_ATTRIBUTES const *)" (?SHCreateDirectoryExW@@$$J212YGHPAUHWND__@@PB_WPBU_SECURITY_ATTRIBUTES@@@Z) referenced in function "private: void __clrcall App2::Form1::saveButton_Click(class System::Object ^,class System::EventArgs ^)" (?saveButton_Click@Form1@App2@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>App2.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall SHCreateDirectoryExW(struct HWND__ *,wchar_t const *,struct _SECURITY_ATTRIBUTES const *)" (?SHCreateDirectoryExW@@$$J212YGHPAUHWND__@@PB_WPBU_SECURITY_ATTRIBUTES@@@Z) referenced in function "private: void __clrcall App2::Form1::saveButton_Click(class System::Object ^,class System::EventArgs ^)" (?saveButton_Click@Form1@App2@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>D:\App2\Debug\App2.exe : fatal error LNK1120: 2 unresolved externals


Does anyone have experience with this function. I want to make a (n absolute) folder and the OS where this will be written for is Vista (sorry - I might upgrade to W7 tho).

Could someone give me some hints?

Kind regards,
AnswerRe: The SHCreateDirectoryEx function. Pin
«_Superman_»13-Nov-09 6:51
professional«_Superman_»13-Nov-09 6:51 
GeneralRe: The SHCreateDirectoryEx function. [modified] Pin
iMikki13-Nov-09 6:56
iMikki13-Nov-09 6:56 
GeneralRe: The SHCreateDirectoryEx function. Pin
«_Superman_»13-Nov-09 7:09
professional«_Superman_»13-Nov-09 7:09 
GeneralRe: The SHCreateDirectoryEx function. Pin
iMikki13-Nov-09 7:12
iMikki13-Nov-09 7:12 
GeneralRe: The SHCreateDirectoryEx function. Pin
«_Superman_»13-Nov-09 7:49
professional«_Superman_»13-Nov-09 7:49 
GeneralRe: The SHCreateDirectoryEx function. Pin
iMikki13-Nov-09 8:02
iMikki13-Nov-09 8:02 
GeneralRe: The SHCreateDirectoryEx function. Pin
Patcher3213-Nov-09 8:41
Patcher3213-Nov-09 8:41 
QuestionHi All Pin
erebor13-Nov-09 6:22
erebor13-Nov-09 6:22 
AnswerRe: Hi All Pin
Maximilien13-Nov-09 7:08
Maximilien13-Nov-09 7:08 
AnswerRe: Hi All Pin
Tim Craig13-Nov-09 17:51
Tim Craig13-Nov-09 17:51 
QuestionUpdating of status bar Pin
lawrenca3713-Nov-09 5:23
lawrenca3713-Nov-09 5:23 
QuestionRe: Updating of status bar Pin
David Crow13-Nov-09 5:30
David Crow13-Nov-09 5:30 
AnswerRe: Updating of status bar Pin
lawrenca3713-Nov-09 5:37
lawrenca3713-Nov-09 5:37 
QuestionRe: Updating of status bar Pin
David Crow13-Nov-09 5:41
David Crow13-Nov-09 5:41 
AnswerRe: Updating of status bar Pin
lawrenca3713-Nov-09 5:44
lawrenca3713-Nov-09 5:44 
QuestionRe: Updating of status bar Pin
David Crow13-Nov-09 5:59
David Crow13-Nov-09 5:59 
AnswerRe: Updating of status bar Pin
lawrenca3713-Nov-09 6:39
lawrenca3713-Nov-09 6:39 

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.