|
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 />
_Application objWord;<br />
<br />
COleVariant covTrue((short)TRUE),<br />
covFalse((short)FALSE),<br />
covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);<br />
<br />
if (!objWord.CreateDispatch("Word.Application"))<br />
{<br />
AfxMessageBox("Couldn't get Word object.");<br />
return;<br />
}<br />
<br />
objWord.SetVisible(TRUE);
<br />
Documents docs;
<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'.
|
|
|
|
|
|
No wonder you don't know since you don't even know where to post your question.
|
|
|
|
|
...... A programming question in the Survey Messageboards!
Isn't anywhere safe anymore ??
|
|
|
|
|
Anyone know if there are keyboards, preferably natural, that have a laptop style finger pad in the middle. That way I can just move the cursor with my thumb.
"The beat goes on.. da-da-dum dadum dum" BW
|
|
|
|
|
|
|
I experienced this question recently. The fellow, who had some minor Windoze experience, would close the open application (like Excel) before opening the next application (like the accounting software). When I told him "you don't need to close Excel, you can just leave it open", he said, "wow, that'll save me a ton of time!".
Needless to say, he would have no clue what "window flipping" meant, or the variety of ways in which to "do it".
Marc
Latest AAL Article
My blog
Join my forum!
|
|
|
|
|
Marc Clifton wrote:
"wow, that'll save me a ton of time!".
ignorance is humor.
"The beat goes on.. da-da-dum dadum dum" BW
|
|
|
|
|
It's funny what some people will do when they don't understand window management. One time, I was showing a receptionist something at her machine, and I minimized her email app and launched a browser. She got all upset that I'd lost her email. I was all for a couple of seconds until I figured out what she was thinking.
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
CP SearchBar v2.0.2 released
|
|
|
|
|
Michael Dunn wrote:
She got all upset that I'd lost her email.
I've had that experience numerous times with "the office girls". What is that makes people think so linear when they use computers, or is it that they just think linear to begin with? Maybe it shouldn't be called "Windows". Maybe it should relate more to what women (eek! sexist remarks follow!!!) are familiar with. How about "Stove Top"? That way, at least they'd get the idea that four things could be "cooking" at one time!
Marc
Latest AAL Article
My blog
Join my forum!
|
|
|
|
|
Marc Clifton wrote:
How about "Stove Top"? That way, at least they'd get the idea that four things could be "cooking" at one time!
ooo, that's bad.
I think it's just inexperience. Our brains can only concentrate on one thing at a time (that's why driving whilst talking on a cell phone is dangerous, if you concentrate on the call you can't concentrate on the road). There's nothing to suggest that a computer is any different, until someone comes along and says "you can just minimize Excel"
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
CP SearchBar v2.0.2 released
|
|
|
|
|
|
OK - fess up.
cheers,
Chris Maunder
|
|
|
|
|
Gimme a break - it was Monday
|
|
|
|
|
...who answered "Jedi Mind Tricks"?
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|
|
|
These aren't the bugs we're looking for. They're just features...move on.
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|
|
If your nose runs and your feet smell, then you're built upside down.
|
|
|
|
|
... is those little pencil-eraser nubbin thingies on laptop keyboards. Gawd how I hate those. I have great coordination and dexterity, yet I find it absolutely impossible to use them.
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
I am quite the opposite. I love the little pencil-eraser-thingy-that-gets-extra-dirty-while-you-use-it nubbin.
I can't STAND touchpads... And I hate it when a laptop comes with both and won't let you turn the touchpad off... My FFS, coupled with the touchpad, tends to make me do bad things to my computer... (like format a drive, accidently delete files, etc.)
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
|
I don't like touchpads, especially the touch-click option cuz sometimes I drag my files or folders somewhere else while I don't want to move
I think small ones like pen-rubbers are better than touchpads. However, I agree on that nothing can take the place of normal mouses.
P.S. Normal mouses=wireless,optical,at least 2 buttons,1roller
-
When in doubt, push a pawn!
-
|
|
|
|
|
Michael Dunn wrote:
especially how you can tap the pad to do a mouse click.
You have no idea how many times I've clicked something I didn't mean to.
--
You say it's raining, but you're pissin' down my back!
|
|
|
|
|
I agree. Rubber sticky thingy over a track pad anyday. Though neither come close to a good old mouse.
regards,
Paul Watson
Bluegrass
South Africa
Miszou wrote:
I have read the entire internet. on how boring his day was.
Crikey! ain't life grand?
|
|
|
|