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

C / C++ / MFC

 
GeneralRe: VC++ 6.0 developer neaded Pin
gamitech18-Jun-04 9:08
gamitech18-Jun-04 9:08 
GeneralRe: VC++ 6.0 developer neaded Pin
Irek Zielinski18-Jun-04 9:11
Irek Zielinski18-Jun-04 9:11 
GeneralExplorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
sas222218-Jun-04 8:53
sas222218-Jun-04 8:53 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
grigri21-Jun-04 2:43
grigri21-Jun-04 2:43 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
sas222221-Jun-04 5:26
sas222221-Jun-04 5:26 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
grigri22-Jun-04 9:47
grigri22-Jun-04 9:47 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
sas222223-Jun-04 3:33
sas222223-Jun-04 3:33 
GeneralVC++ ActiveX Pin
Wender Oliveira18-Jun-04 7:38
Wender Oliveira18-Jun-04 7:38 
I hate to be a newbie but I need this. I made an ActiveX that its only function is return a string with some information of client PC but this doesn't matter ... the problem is... When I invoke my method in my HTML file my method doesn't return any string... I don't know how to make this but I tried by this way:


/****** IDL FILE *********/
dispinterface _DMyActiveX
{
properties:
methods:
[id(60666)] char* GetString();
};


/******Control CPP File*******/
BEGIN_DISPATCH_MAP(CMyActiveXCtrl, COleControl)
DISP_FUNCTION_ID(CMyActiveXCtrl, "GetString", 60666, GetString, VT_EMPTY, VTS_NONE)
END_DISPATCH_MAP()


char* CMyActiveXCtrl::GetString()
{
return "TestString\0";
}

/******** CONTROL H FILE *****/
// Dispatch maps
DECLARE_DISPATCH_MAP()


afx_msg char* GetString();



/************************************************************/
This is what I changed on original VC++ files... this method works as well to show an MessageBox or an Dialog but it doesn't to just return a string... I don't know the reason... maybe the afx_msg... Can anyone help me??? Thanks!!!!

Confused | :confused: Confused | :confused: Confused | :confused: Wender Oliveira
.NET Programmer
GeneralRe: VC++ ActiveX Pin
TimWallace18-Jun-04 9:14
TimWallace18-Jun-04 9:14 
GeneralRe: VC++ ActiveX Pin
Wender Oliveira18-Jun-04 9:19
Wender Oliveira18-Jun-04 9:19 
GeneralRe: VC++ ActiveX Pin
Nick Parker18-Jun-04 11:56
protectorNick Parker18-Jun-04 11:56 
GeneralDirectx and non-rectangular dialogs Pin
Xavi Temporal18-Jun-04 7:09
Xavi Temporal18-Jun-04 7:09 
Generalstd::string strange error Pin
Scozturk18-Jun-04 6:49
professionalScozturk18-Jun-04 6:49 
GeneralRe: std::string strange error Pin
Scozturk18-Jun-04 6:56
professionalScozturk18-Jun-04 6:56 
GeneralRe: std::string strange error Pin
James R. Twine18-Jun-04 11:06
James R. Twine18-Jun-04 11:06 
GeneralSetting the print title column Pin
mcgahanfl18-Jun-04 5:43
mcgahanfl18-Jun-04 5:43 
GeneralRe: Setting the print title column Pin
Johan Rosengren18-Jun-04 5:53
Johan Rosengren18-Jun-04 5:53 
Generalstd::string and reserve question ... Pin
Maximilien18-Jun-04 5:24
Maximilien18-Jun-04 5:24 
GeneralRe: std::string and reserve question ... Pin
palbano18-Jun-04 6:00
palbano18-Jun-04 6:00 
GeneralRe: std::string and reserve question ... Pin
Maximilien18-Jun-04 8:24
Maximilien18-Jun-04 8:24 
GeneralRe: std::string and reserve question ... Pin
James R. Twine18-Jun-04 11:20
James R. Twine18-Jun-04 11:20 
GeneralExperts help with Threads with Notifications Pin
18-Jun-04 4:50
suss18-Jun-04 4:50 
GeneralRe: Experts help with Threads with Notifications Pin
Blake Miller18-Jun-04 5:47
Blake Miller18-Jun-04 5:47 
GeneralRe: Experts help with Threads with Notifications Pin
Member 115017621-Jun-04 1:29
Member 115017621-Jun-04 1:29 
QuestionHow can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:41
Gem18-Jun-04 4:41 

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.