Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert virtual key code to human readable format Pin
Antti Keskinen15-Feb-04 3:08
Antti Keskinen15-Feb-04 3:08 
QuestionWhy this code never works???!?? Pin
YaronNir15-Feb-04 1:26
YaronNir15-Feb-04 1:26 
AnswerRe: Why this code never works???!?? Pin
Antti Keskinen15-Feb-04 3:33
Antti Keskinen15-Feb-04 3:33 
GeneralRe: Why this code never works???!?? Pin
YaronNir15-Feb-04 5:33
YaronNir15-Feb-04 5:33 
GeneralRe: Why this code never works???!?? Pin
Antti Keskinen15-Feb-04 7:10
Antti Keskinen15-Feb-04 7:10 
GeneralRe: Why this code never works???!?? Pin
Antti Keskinen15-Feb-04 7:51
Antti Keskinen15-Feb-04 7:51 
GeneralRe: Why this code never works???!?? Pin
YaronNir15-Feb-04 20:58
YaronNir15-Feb-04 20:58 
GeneralRe: Why this code never works???!?? Pin
Antti Keskinen15-Feb-04 22:06
Antti Keskinen15-Feb-04 22:06 
The errors happen because I use .NET version of VS, and you apparently have version 6.0/5.0 installed. You must search your own registry for the correct ProgID (Name) of the Microsoft Development Environment Object (DTE Object).

The IDispatch interface pointer that is provided to you points to the IDispatch interface of the DTE object. According to my MSDN Library copy, the DTE object has a method called Solution (wrapped as get_Solution) that provides you with a pointer to the IDispatch interface of the Solution object. The Solution object, again, has a method called FullName (wrapped as get_FullName) that gives you the full path name of the solution file.

You can then use any path parser class or function to parse the actual solution name from this string.

Note that this applies only to Visual Studio .NET. I will attempt to create a Visual Studio 6.0 compatible version today, when I have access to a 6.0 environment. Will post more information later.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Why this code never works???!?? Pin
YaronNir15-Feb-04 22:10
YaronNir15-Feb-04 22:10 
GeneralRe: Why this code never works???!?? Pin
Antti Keskinen16-Feb-04 2:03
Antti Keskinen16-Feb-04 2:03 
GeneralRe: Why this code never works???!?? Pin
YaronNir16-Feb-04 2:15
YaronNir16-Feb-04 2:15 
GeneralRe: Why this code never works???!?? Pin
Antti Keskinen16-Feb-04 2:54
Antti Keskinen16-Feb-04 2:54 
GeneralRe: Why this code never works???!?? Pin
YaronNir16-Feb-04 3:19
YaronNir16-Feb-04 3:19 
GeneralRe: Why this code never works???!?? Pin
Antti Keskinen16-Feb-04 5:53
Antti Keskinen16-Feb-04 5:53 
GeneralRe: Why this code never works???!?? Pin
YaronNir16-Feb-04 6:12
YaronNir16-Feb-04 6:12 
QuestionHow to Insert Table in Rich Text Box Control Pin
Sumit Kapoor15-Feb-04 0:18
Sumit Kapoor15-Feb-04 0:18 
AnswerRe: How to Insert Table in Rich Text Box Control Pin
CodeBrain15-Feb-04 21:57
CodeBrain15-Feb-04 21:57 
GeneralDatabase Problem Pin
Ghasrfakhri14-Feb-04 23:00
Ghasrfakhri14-Feb-04 23:00 
GeneralRe: Database Problem Pin
Manfred Staiger16-Feb-04 0:37
Manfred Staiger16-Feb-04 0:37 
GeneralRe: Database Problem Pin
David Crow16-Feb-04 3:23
David Crow16-Feb-04 3:23 
Generalneed help for sound recording and play back in C/C++ Pin
wenfoo14-Feb-04 22:14
wenfoo14-Feb-04 22:14 
GeneralRe: need help for sound recording and play back in C/C++ Pin
elza14-Feb-04 22:46
elza14-Feb-04 22:46 
GeneralRe: need help for sound recording and play back in C/C++ Pin
wenfoo15-Feb-04 4:05
wenfoo15-Feb-04 4:05 
GeneralRichEdit Pin
Rassul Yunussov14-Feb-04 22:14
Rassul Yunussov14-Feb-04 22:14 
GeneralRe: RichEdit Pin
Michael P Butler15-Feb-04 1:31
Michael P Butler15-Feb-04 1:31 

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.