Click here to Skip to main content
16,004,977 members

Survey Results

Mouse, trackball or keyboard?   [Edit]

Survey period: 22 Sep 2003 to 28 Sep 2003

What do you use to flip your Windows?

OptionVotes% 
Mouse82268.44
Trackball1048.66
Keyboard66755.54
Touchpad645.33
Stylus / Touchscreen322.66
Other352.91
Respondents were allowed to choose more than one answer; totals may not add up to 100%

View optional text answers (62 answers)


 
GeneralError in Opening Document file Pin
Thoppae25-Sep-03 18:55
Thoppae25-Sep-03 18:55 
I tried the program given in msdn site
http://support.microsoft.com/defaul...&NoWebContent=1
In that I tried to open the msword document. While opening the document i am getting "Null reference pointer was passed to the stub". In the code i have indicated the error line. I dont know how to get the word document opened.
Sample Code:
<br />
void CDumDlg::OnRun() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	_Application objWord;<br />
<br />
      // Convenient values declared as ColeVariants.<br />
      COleVariant covTrue((short)TRUE),<br />
                  covFalse((short)FALSE),<br />
                  covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);<br />
<br />
      // Get the IDispatch pointer and attach it to the objWord object.<br />
      if (!objWord.CreateDispatch("Word.Application"))<br />
      {<br />
         AfxMessageBox("Couldn't get Word object.");<br />
         return;<br />
      }<br />
<br />
      objWord.SetVisible(TRUE);  //This shows the application.<br />
<br />
      Documents docs;//(objWord.GetDocuments());<br />
	  /*docs.Open(COleVariant("C:\\test.doc",VT_BSTR),<br />
		  covFalse,<br />
		  covFalse,<br />
		  covFalse,<br />
		  covOptional,<br />
		  covOptional,<br />
		  covOptional,<br />
		  covOptional,<br />
		  covFalse,<br />
		  covOptional,<br />
		  covFalse,<br />
		  covTrue,<br />
		  covOptional,<br />
		  0,<br />
		  covOptional);<br />
	  objWord.ShowMe();*/<br />
		  <br />
      _Document testDoc;<br />
<br />
<br />
      testDoc.AttachDispatch(docs.Open(COleVariant("C:\\test.doc",VT_BSTR),<br />
		  covFalse,<br />
		  covFalse,<br />
		  covFalse,<br />
		  covOptional,<br />
		  covOptional,<br />
		  covOptional,<br />
		  covOptional,<br />
		  covFalse,<br />
		  covOptional,<br />
		  covFalse,<br />
		  covTrue,<br />
		  covOptional,<br />
		  0,<br />
		  covOptional));<br />
<br />
	  objWord.Quit(covFalse,covTrue,covFalse);<br />
  <br />
}<br />

I have included correct .olb file.
Thanks in Advance,
Thoppae

Its Always the Root that helps to Nurture Fruits.The Root is 'C'.
GeneralRe: Error in Opening Document file Pin
Thoppae25-Sep-03 19:11
Thoppae25-Sep-03 19:11 
GeneralRe: Error in Opening Document file. No wonder... Pin
Anonymous26-Sep-03 8:14
Anonymous26-Sep-03 8:14 
GeneralThis is a first...... Pin
Nick Seng28-Sep-03 16:37
Nick Seng28-Sep-03 16:37 
Generalkeyboard with cursor pad Pin
brianwelsch25-Sep-03 2:21
brianwelsch25-Sep-03 2:21 
GeneralRe: keyboard with cursor pad Pin
Ian Darling26-Sep-03 1:58
Ian Darling26-Sep-03 1:58 
GeneralRe: keyboard with cursor pad Pin
Michael Dunn27-Sep-03 19:01
sitebuilderMichael Dunn27-Sep-03 19:01 
GeneralWhat? You can have more than one window open at a time? Pin
Marc Clifton23-Sep-03 15:33
mvaMarc Clifton23-Sep-03 15:33 
GeneralRe: What? You can have more than one window open at a time? Pin
brianwelsch25-Sep-03 2:17
brianwelsch25-Sep-03 2:17 
GeneralRe: What? You can have more than one window open at a time? Pin
Michael Dunn27-Sep-03 19:06
sitebuilderMichael Dunn27-Sep-03 19:06 
GeneralRe: What? You can have more than one window open at a time? Pin
Marc Clifton28-Sep-03 3:04
mvaMarc Clifton28-Sep-03 3:04 
GeneralRe: What? You can have more than one window open at a time? Pin
Michael Dunn28-Sep-03 5:40
sitebuilderMichael Dunn28-Sep-03 5:40 
GeneralCLsitCrtl Pin
Anonymous23-Sep-03 8:28
Anonymous23-Sep-03 8:28 
GeneralCMouseCtrl Pin
Chris Maunder22-Sep-03 19:01
cofounderChris Maunder22-Sep-03 19:01 
GeneralRe: CMouseCtrl Pin
Jon Sagara22-Sep-03 19:42
Jon Sagara22-Sep-03 19:42 
GeneralAlright... Pin
David Stone22-Sep-03 8:14
sitebuilderDavid Stone22-Sep-03 8:14 
GeneralRe: Alright... Pin
Michael Dunn22-Sep-03 14:44
sitebuilderMichael Dunn22-Sep-03 14:44 
GeneralRe: Alright... Pin
David Stone22-Sep-03 18:41
sitebuilderDavid Stone22-Sep-03 18:41 
GeneralRe: Alright... Pin
Navin26-Sep-03 2:42
Navin26-Sep-03 2:42 
GeneralThe worst mouse hardware... Pin
Michael Dunn22-Sep-03 4:21
sitebuilderMichael Dunn22-Sep-03 4:21 
GeneralRe: The worst mouse hardware... Pin
kaschimer22-Sep-03 6:43
kaschimer22-Sep-03 6:43 
GeneralRe: The worst mouse hardware... Pin
Michael Dunn22-Sep-03 7:16
sitebuilderMichael Dunn22-Sep-03 7:16 
GeneralRe: The worst mouse hardware... Pin
sacoskun23-Sep-03 7:00
sacoskun23-Sep-03 7:00 
GeneralRe: The worst mouse hardware... Pin
Jörgen Sigvardsson23-Sep-03 9:15
Jörgen Sigvardsson23-Sep-03 9:15 
GeneralRe: The worst mouse hardware... Pin
Paul Watson22-Sep-03 7:18
sitebuilderPaul Watson22-Sep-03 7:18 

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.