Click here to Skip to main content
15,913,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Something like #error but without error? Pin
Dominik Reichl27-Jun-03 23:32
Dominik Reichl27-Jun-03 23:32 
GeneralRe: Something like #error but without error? Pin
Ryan Binns28-Jun-03 0:10
Ryan Binns28-Jun-03 0:10 
QuestionDatabase? Pin
DaveE9th27-Jun-03 19:40
DaveE9th27-Jun-03 19:40 
AnswerRe: Database? Pin
Anonymous29-Jun-03 5:20
Anonymous29-Jun-03 5:20 
QuestionHow read CD-ROM disc data? Pin
happywan27-Jun-03 19:03
happywan27-Jun-03 19:03 
AnswerRe: How read CD-ROM disc data? Pin
Trollslayer28-Jun-03 5:26
mentorTrollslayer28-Jun-03 5:26 
GeneralRe: How read CD-ROM disc data? Pin
kakan30-Jun-03 21:23
professionalkakan30-Jun-03 21:23 
GeneralMsComm control in User ActiveX Pin
rarao27-Jun-03 18:00
rarao27-Jun-03 18:00 
I would like to create an active X control using VC++ 6.0 in which, apart from my application specific properties and methods , I also want to have a MsComm Control (for serial port communications) as a member variable in the user activeX property page class which gets generated by the apllication wizard. The following are the steps I had taken to do so.

1. Used MFC ActiveX control Wizard to create a ActiveX application.

2. Added the MsComm active X control in the resource tool box. (The phone icon was visible in the toolbox)

3. Added the MsComm Control in the Property page dialog box (which was created automatically by the wizard).

4. Assigned a member variable, say, m_Comm to the control.

5. Added a method to the control class (automatically generated by the wizard) called OpenPort, in which I called the m_Comm.SetSettings("9600,N,8,1") function.

6. Compiled and created a ActiveX control.

So far so good ..... No Hassles.

7. Created a Dialog based MFC application in which I used this ActiveX control. Provided a button in the dialog to trigger the OpenPort Function of the active X.

Now the hassles start......

8. The program crashes.

9. I debugged the code of the activeX project and found that the address m_Comm variable was NULL instead of a meaningfull value.

Where did I go Wrong?



GeneralRe: MsComm control in User ActiveX Pin
Trollslayer28-Jun-03 5:33
mentorTrollslayer28-Jun-03 5:33 
Questionhow to deal with this error?(about SHGetFolderLocation) Pin
tiplip27-Jun-03 15:55
tiplip27-Jun-03 15:55 
AnswerRe: how to deal with this error?(about SHGetFolderLocation) Pin
Toni7827-Jun-03 16:14
Toni7827-Jun-03 16:14 
GeneralRe: how to deal with this error?(about SHGetFolderLocation) Pin
tiplip27-Jun-03 16:21
tiplip27-Jun-03 16:21 
GeneralRe: how to deal with this error?(about SHGetFolderLocation) Pin
Toni7827-Jun-03 16:26
Toni7827-Jun-03 16:26 
AnswerRe: how to deal with this error?(about SHGetFolderLocation) Pin
Ryan Binns27-Jun-03 16:58
Ryan Binns27-Jun-03 16:58 
GeneralRe: how to deal with this error?(about SHGetFolderLocation) Pin
Anonymous27-Jun-03 23:09
Anonymous27-Jun-03 23:09 
AnswerRe: how to deal with this error?(about SHGetFolderLocation) Pin
Michael Dunn27-Jun-03 17:21
sitebuilderMichael Dunn27-Jun-03 17:21 
QuestionHow can I use ReadFile() and WriteFile () Pin
Angel Kid27-Jun-03 14:44
Angel Kid27-Jun-03 14:44 
AnswerRe: How can I use ReadFile() and WriteFile () Pin
Toni7827-Jun-03 15:25
Toni7827-Jun-03 15:25 
GeneralRe: How can I use ReadFile() and WriteFile () Pin
Angel Kid28-Jun-03 1:33
Angel Kid28-Jun-03 1:33 
GeneralRe: How can I use ReadFile() and WriteFile () Pin
Toni7828-Jun-03 9:47
Toni7828-Jun-03 9:47 
GeneralRe: How can I use ReadFile() and WriteFile () Pin
louis30-Jun-03 2:35
louis30-Jun-03 2:35 
AnswerRe: How can I use ReadFile() and WriteFile () Pin
valikac28-Jun-03 6:57
valikac28-Jun-03 6:57 
GeneralPowerPoint File Processing w/out office automation? $$$ Pin
RickGavin27-Jun-03 12:46
RickGavin27-Jun-03 12:46 
GeneralRe: PowerPoint File Processing w/out office automation? $$$ Pin
Ryan Binns27-Jun-03 17:03
Ryan Binns27-Jun-03 17:03 
GeneralMatrix! HELP!!!! Pin
Sunnygirl27-Jun-03 11:23
Sunnygirl27-Jun-03 11:23 

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.