Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pass BYTE Array from VB to ATL COM Pin
Anonymous23-Jul-02 20:39
Anonymous23-Jul-02 20:39 
QuestionHow to get properties of control. Pin
Raman Chilukuri23-Jul-02 19:16
Raman Chilukuri23-Jul-02 19:16 
QuestionHow can I do it in Mscomm control? Pin
glinda23-Jul-02 16:29
glinda23-Jul-02 16:29 
AnswerRe: How can I do it in Mscomm control? Pin
NormDroid23-Jul-02 22:24
professionalNormDroid23-Jul-02 22:24 
QuestionHow to Add Start menu shortcut in Setup program Pin
a3gupta23-Jul-02 15:22
a3gupta23-Jul-02 15:22 
AnswerRe: How to Add Start menu shortcut in Setup program Pin
super23-Jul-02 23:32
professionalsuper23-Jul-02 23:32 
GeneralRe: How to Add Start menu shortcut in Setup program Pin
a3gupta23-Jul-02 23:52
a3gupta23-Jul-02 23:52 
GeneralRe: How to Add Start menu shortcut in Setup program Pin
super24-Jul-02 1:17
professionalsuper24-Jul-02 1:17 
Yeah thats the problem.......
U should nver give the relative path..I will not work...In this code when u run with start menu it will search the folder of startmenu and never the exe..So its better u use Absolute path of exe...
So use this piece of code..
<br />
CString StrLaunched;<br />
TCHAR szFullPath[MAX_PATH];<br />
TCHAR szDir[_MAX_DIR];<br />
TCHAR szDrive[_MAX_DRIVE];<br />
::GetModuleFileName(NULL,szFullPath,MAX_PATH);<br />
_splitpath(szFullPath, szDrive, szDir, NULL, NULL);<br />
StrLaunched.Format(_T("%s%s"), szDrive, szDir);<br />
char *pszFileName=StrLaunched+"config.dat";<br />


This will work.....
Then :: means ur calling an Windows Sdk function Big Grin | :-D

cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
Generalleft scroll bar Pin
Steve L.23-Jul-02 13:25
Steve L.23-Jul-02 13:25 
GeneralRe: left scroll bar Pin
Peter Occil23-Jul-02 16:23
Peter Occil23-Jul-02 16:23 
GeneralI get an error when using DAO with Text files Pin
achandra00723-Jul-02 12:32
achandra00723-Jul-02 12:32 
QuestionHow do I use insertion mark in the ListView control? Pin
Hiusing23-Jul-02 12:17
Hiusing23-Jul-02 12:17 
AnswerRe: How do I use insertion mark in the ListView control? Pin
Joaquín M López Muñoz23-Jul-02 12:48
Joaquín M López Muñoz23-Jul-02 12:48 
QuestionDialog App how do I get VK_RIGHT??? Pin
Anonymous23-Jul-02 11:51
Anonymous23-Jul-02 11:51 
AnswerRe: Dialog App how do I get VK_RIGHT??? Pin
Joaquín M López Muñoz23-Jul-02 11:55
Joaquín M López Muñoz23-Jul-02 11:55 
GeneralOLE Drag Drop without MFC Pin
CaesarCZ23-Jul-02 11:50
CaesarCZ23-Jul-02 11:50 
Generallosing stdin when redirecting stdout and stderr Pin
Peter Weyzen23-Jul-02 11:19
Peter Weyzen23-Jul-02 11:19 
Generaldrag drop, list view Pin
Chris Losinger23-Jul-02 9:48
professionalChris Losinger23-Jul-02 9:48 
GeneralRe: drag drop, list view Pin
CaesarCZ23-Jul-02 11:45
CaesarCZ23-Jul-02 11:45 
GeneralRe: drag drop, list view Pin
l a u r e n23-Jul-02 12:27
l a u r e n23-Jul-02 12:27 
GeneralRe: drag drop, list view Pin
Shog923-Jul-02 17:58
sitebuilderShog923-Jul-02 17:58 
GeneralRe: drag drop, list view Pin
Bhikshapathi Gorantla23-Jul-02 19:07
Bhikshapathi Gorantla23-Jul-02 19:07 
GeneralRe: drag drop, list view Pin
Shog924-Jul-02 6:03
sitebuilderShog924-Jul-02 6:03 
GeneralRe: drag drop, list view Pin
Chris Losinger23-Jul-02 19:18
professionalChris Losinger23-Jul-02 19:18 
GeneralRe: drag drop, list view Pin
Shog924-Jul-02 5:51
sitebuilderShog924-Jul-02 5:51 

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.