|
Essentially what I want to do is the samething that happens when you select "Window->Document Name" from the menu. I have a CView pointer to the View I want to activate.
Any help would be appreciated.
Thanks.
Eldon Zacek
Czech-Mate Enterprises, LLC
|
|
|
|
|
get the CView's associated frame (making sure it has one first) and then call ActivateFrame on the frame
- Roman -
|
|
|
|
|
Hello All,
I have previously developed a device driver for Windows NT 4.0. That was in 1999. I've since moved on to other projects. 4 years on now, I want to port my original WinNT device driver to Windows XP.
I'm wondering if thw Windows NT device driver source codes (written in C) can still be used in WinXP (usning WinXP DDK) ?
Has anyone done such porting before ?
Thanks, All,
Bio.
|
|
|
|
|
i am writing a windows app, so i know windows will always be installed , but i wont be gauranteed that its system path is c:\windows\system\
i need to programmatically find out the windows\system folder and drive on the o/s the app is running on so that i can put files into it via my code... is there an api call or easy way to pull that info from the sys???
thanks
todo....
:: insert inpirational text here ::
|
|
|
|
|
hi,
u can use
GetWindowsDirectory(...) [returns root:\windows dir] or
GetSystemDirectory(..) [returns root:\windows dir\system]
enjoy!!!!
<marquee>rishabhs<marquee>
|
|
|
|
|
U can use this function "GetSystemDirectory", this will return u the system directory on windows.
|
|
|
|
|
thanks
todo....
:: insert inpirational text here ::
|
|
|
|
|
dear all,
how can i pass CString objects in API functions which expect:-
LPCTSTR
LPCWSTR
LPCTSTR
LPTSTR -> is there any other way than CString::GetBuffer
LPWSTR
PCSTR
thanx
|
|
|
|
|
Where you want a wide string, use _bstr_t, the constructor builds an object which contains both a wide and narrow string, with operators for both. That may well work for all the things you list. I think it's defined in comdef.h, or somesuch.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
thanx Christian,
but can u illustrate some example for such conversions
|
|
|
|
|
basically, if a function needs one of those things, and you have a CSTring called s, do this
myfunc(_bstr_t(s));
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
thanx Christian for the help!
but is the method safe and effective?
|
|
|
|
|
rishabhs wrote:
but is the method safe and effective?
Gosh you're a worry wart !!!
Yes, it's fine. The constructor builds a class, that class passes the required result to the function and on return the class destructor cleans up after itself. Windows is full of string conversion routines, but I find the _bstr_t method nice and easy.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Aint you wasting your time a little bit, trying to explain details when you know Dunn did a couple tutorials about it ? When you know how recurrent these posts about strings are, that's a complete shame each person posting in the VC++ forum is not offered a poll before they really get to the posting form, and that would go like this :
- question 1 : is your question about strings (translate that one to indian too) ?
If answer is yes, throw the Dunn tutorials to his head.
Otherwise,
- question 2 : are you sure your question is not related to characters or the CString class ? (please note the irony )
- question 3 : in case your question has to do with a LPSTR topic or something like that, then please consider looking those articles : 1[^] and 2[^].
|
|
|
|
|
thanx .S.Rod. for the hammering!
i had no knowledge about the tutorials, that's why i thought i could get some helping hand in the forum.
anyways thanx for the links u've shown me! i think they'll help my cause.
i think u were sarcastic in the reply!
i could'nt understand some of the remarks!
thanx
|
|
|
|
|
rishabhs wrote:
thanx .S.Rod. for the hammering!
This is a reply to the grausian answer to your post. I have made a reply for you just below.
|
|
|
|
|
sorry rod!
those articles were really helpful,
but still i think u were rude!
|
|
|
|
|
Good point, I must admit I forget about those as well.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
|
I want to get every HTML page when IE load it, any idea?
Thank you.
|
|
|
|
|
Either you can Embedd Web Browser component and load respective html page or
use following in a DialogBox for invoking Html page:
HWND h = FindWindowEx(NULL,NULL,NULL,"Microsoft Internet Explorer");
ShellExecute(h,"open","http:\\\\www.funducode.com",NULL,NULL,SW_SHOWNORMAL);
|
|
|
|
|
Hello Dear All,
I've been doing Windows NT 4.0 development since 1997 and I'm relatively new to Windows XP. I've recently heard that Named Pipes are no longer supported in Windows XP or that it will be gradually phased out in the long run.
I'm wondering if this is truly the case. I've referred to the MSDN documentation for Named Pipes and noted that it is supported in XP and there is no mention of it becoming obsolete.
I personally do not think Named Pipes will become obsolete anytime in the future but has anyone vaguely heard of this possibility ?
Thanks, All,
Bio.
|
|
|
|
|
Hi guys,
I've a dial up connection available on a pc to which I'm connected via LAN. I want to connect to internet using this dial up connection. How can I do that? Is it possible to invoke that dial up connection through my program also.
Thanks
Deepak
|
|
|
|
|
im looking for the fastest, easiest, (hopefully very W3C conformant) XML parsing/writing library -- preferably support for event-based parsing
i've tried microsoft's MSXML but it's unbelievably hard to use with all the COM interfaces and stuff it gets annoying
thanks for the help
- Roman -
|
|
|
|
|
one of the fastest is expat[^] (James Clark, W3C). And yes it's event based. It doesn't write Xml though.
(MSXML 4.0 is f***ing fast either, but the SDK has limitations, and it's of course full of proprietary interfaces and behaviours).
|
|
|
|