Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class/Library for connecting FTP through Proxy servers (SOCKS4, 5, HTTP) Pin
Uwe Keim11-Nov-03 0:31
sitebuilderUwe Keim11-Nov-03 0:31 
GeneralShutdown n/w "WIN98" computer Pin
Jackson Antony6-Nov-03 2:53
Jackson Antony6-Nov-03 2:53 
GeneralRe: Shutdown n/w "WIN98" computer Pin
Brian Shifrin6-Nov-03 3:42
Brian Shifrin6-Nov-03 3:42 
QuestionWhere can I get 'dxerr8.h'? Pin
knokke6-Nov-03 2:10
knokke6-Nov-03 2:10 
AnswerRe: Where can I get 'dxerr8.h'? Pin
Mike Dimmick6-Nov-03 2:36
Mike Dimmick6-Nov-03 2:36 
AnswerRe: Where can I get 'dxerr8.h'? Pin
ZoogieZork6-Nov-03 3:30
ZoogieZork6-Nov-03 3:30 
GeneralRe: Where can I get 'dxerr8.h'? Pin
knokke6-Nov-03 23:07
knokke6-Nov-03 23:07 
Questionhow to write a com which will be called in asp using vc++? Pin
zhangxinghai6-Nov-03 2:05
zhangxinghai6-Nov-03 2:05 
Dear all:
I'm writing a com which will be accessed in asp using vc++.I'm not familiar with atl,so mfc is my only choice.I'm a beginner,so I do it step by step.I used appwizard to create a standard mfc dll with automation enabled.I created a new class CMyobj which inherited from CCmdtarget.The automation option I selected for CMyobj is createable by type id.Now I add a method
BSTR GetNameById(LPCTSTR ID)
My first question is if I can call this method directly in ASP like this:
DIM OBJ
DIM ID
DIM Name
obj = server.createobject("Myobj")
Name= obj.GetNameById(ID)
If I can't,what else should I code.(I am a step by step)
I also waht to add a method to return one(or more) recordset(s).How to declare the parameter type for recordset.My declaration is
LPDISPATCH GetNameByDept(long dept)
In the implimentation of this method,I create a recordset,retrieve the data,cast the recordset to (IDISPATCH *).The code is like this:
_Recordsetptr pRs;
pRs->createinstance(__uuidof(recordset))
....
pRs->open(sql,connection_string,...)
return (IDISPATCH *)pRs->Detach()
I create a c++ client and call the method like this:
_Recordsetptr pRs;
long deptid;
pRs = IObjinterface->GetNameByDept(deptid)
It works in c++.But i think it may be a little lucky.It doesn't work in asp.Asp code may be like this:
dim rs
dim obj
dim dept
set rs=server.createobject('adodb.recordset')
set obj=server.createobject('myobj')
rs=obj.GetNameByDept(dept)
rs.open
....
set rs=nothing
set obj=nothing
Can somebody give me some help?example codes,articles,urls or books.
AnswerRe: how to write a com which will be called in asp using vc++? Pin
valikac6-Nov-03 5:41
valikac6-Nov-03 5:41 
GeneralMulticast in c++ Pin
styve6-Nov-03 0:03
styve6-Nov-03 0:03 
GeneralRe: Multicast in c++ Pin
Giles6-Nov-03 0:39
Giles6-Nov-03 0:39 
GeneralRe: Multicast in c++ Pin
Igor Proskuriakov6-Nov-03 1:11
Igor Proskuriakov6-Nov-03 1:11 
Generalimplementation Pin
Anonymous5-Nov-03 23:38
Anonymous5-Nov-03 23:38 
GeneralRe: implementation Pin
Mike Beckerleg6-Nov-03 4:56
Mike Beckerleg6-Nov-03 4:56 
QuestionHow do I use a COM component in Java? Pin
melwyn5-Nov-03 23:34
melwyn5-Nov-03 23:34 
AnswerRe: How do I use a COM component in Java? Pin
antlers6-Nov-03 10:33
antlers6-Nov-03 10:33 
GeneralRe: How do I use a COM component in Java? Pin
melwyn6-Nov-03 20:29
melwyn6-Nov-03 20:29 
GeneralRe: How do I use a COM component in Java? Pin
antlers7-Nov-03 12:06
antlers7-Nov-03 12:06 
QuestionWait for program to terminate? Pin
Dominik Reichl5-Nov-03 23:19
Dominik Reichl5-Nov-03 23:19 
AnswerRe: Wait for program to terminate? Pin
Joaquín M López Muñoz6-Nov-03 0:07
Joaquín M López Muñoz6-Nov-03 0:07 
GeneralRe: Wait for program to terminate? Pin
Dominik Reichl6-Nov-03 0:49
Dominik Reichl6-Nov-03 0:49 
GeneralRe: Wait for program to terminate? Pin
Joaquín M López Muñoz6-Nov-03 0:56
Joaquín M López Muñoz6-Nov-03 0:56 
AnswerRe: Wait for program to terminate? Pin
Brian Shifrin6-Nov-03 3:51
Brian Shifrin6-Nov-03 3:51 
Generalimplementation and interface Pin
Anonymous5-Nov-03 22:47
Anonymous5-Nov-03 22:47 
GeneralRe: implementation and interface Pin
Joaquín M López Muñoz6-Nov-03 0:14
Joaquín M López Muñoz6-Nov-03 0:14 

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.