|
will it appreciate white spaces and long names ?
(E:\Nicolas\Projets Visual C++\CPParser\Debug)
TOXCCT >>> GEII power
|
|
|
|
|
damn it, it works !!
hem, in fact, i'll need later to pass theses paths to main directly, and the user won't necessarily give the entire path...
what can i do ?
TOXCCT >>> GEII power
|
|
|
|
|
humm, well i dont know exactly, but i would not like to have relative paths, i prefer complete path... there are ways you can make the user give the complete path. like using the fileopen dialog to ask the user to select the file.
God is Real, unless declared Integer.
|
|
|
|
|
erf, yes of course, but i am writing a little console project...
no dialog so.
TOXCCT >>> GEII power
|
|
|
|
|
if the path is relative then current directory is cosidered as the working directory.
so if you just specify the file name like test.txt then test.txt should be in the same directory as the .exe file that you are invoking.
But invoking it from the visual c++ editor(i.e ! button) will not work as it sets the current working directory to something else (i dont know what, may be the project directory, one below debug)
God is Real, unless declared Integer.
|
|
|
|
|
that's what i was thinking too.
thanks for your answer guy.
i can now continue
TOXCCT >>> GEII power
|
|
|
|
|
One thing to remember is that the current directory is not the same as the program directory. This is a very common mistake made by programmers.
In your case, I don't think that will be an issue since it doesn't look like you are trying to open a file in the same directory as the program.
BTW, with VS7 (and maybe 6), the working directory is not the "debug" or "release" directory. It is the project directory.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
If there is someone who could help me with this...
I want to (have to) disable access to System Clock via doubleClick...
I tried hiding it ( it works - but Double click is not disabled ), disabeling
the clock window, and still there is Double click access..
so if someone could help me.. please don't hesitate to do so...
thanks for the help...
bela
|
|
|
|
|
Why would any one wants to diable the system time to be shown?
God is Real, unless declared Integer.
|
|
|
|
|
In industrial applications, you might want to prevent the user from goofing with the system.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
|
Mr.Prakash thank you for you're response, but it would really be a help if you told me what is the usual way for disabeling the acces to System Clock...
it would help me verry much ...
please reply to this message.
bela
|
|
|
|
|
The wndclass of the system clock is TrayClockWClass may be you could figure it out what to do with the window after using FindWindow on it.
God is Real, unless declared Integer.
|
|
|
|
|
well .. i have already done that...
i have found the window and disabled it, hidden it .. but double click still works...
So i need it because i have written a program that uses system clock..
and do not want other users to change it...
i don't mean programmers.. but the usual user who knows to double click the sysTray ...
so any other ideas?..
bela
|
|
|
|
|
You need to subclass the window so that you can handle the doubleclick event and do what you want to do (ignore it).
God is Real, unless declared Integer.
|
|
|
|
|
renjith_sree wrote:
that means you want to disable the double click event in
SystemTray. isnt?
wow you got it rite, may be you should start translating every post to more sensible post so that every one can understand it.
Thanx a lot.
God is Real, unless declared Integer.
|
|
|
|
|
Does Monitor need a "Root-Enumerated driver"?
Because when I ran sample Win2K installer as:
c:\install "775FT.inf" "Monitor\GSM42D1"
I got the following error:
UpdateDriverForPlugAndPlayDevices FAILURE: (0xe0000219)
We know:#define ERROR_NO_ASSOCIATED_SERVICE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219)
(Monitor has not a services! Is it OK?)
How can I solve this problem!?
Notice: DDK2K install sample has a problem, So first see:
http://www.codeproject.com/script/comments/forums.asp?msg=801613&forumid=1647&mode=all&userid=67503#xx801613xx[^]
Thanks you.
|
|
|
|
|
I think that you will good answers at microsoft newsgroup msnews.micrsoft.com there is a seperate disscussion on DDK.
God is Real, unless declared Integer.
|
|
|
|
|
If you need to build an installer application for a specific monitor, why dont u use the Setup API functions and build yourself your installer? This way you will know whats going on in each step if the installer program is giving u trouble. I'm not sure if monitor drivers use services ... open up the inf file and look for a section like [xxx.ntx86.services] or [services]. even better: search for the string "AddService" without the quotes. That way you'll know if it uses services or not. Hope this was helpful.
-Tareq
|
|
|
|
|
I have an application with a window that has a edit box. I am writing a integer value to the box. The default font size is too small. I need to make the font size much larger in my application. I dont know how to use CFont to make the number larger before sending it to the edit box. Can someone help me out? Do I need to use CFont at all?
Jerry
|
|
|
|
|
Well, you don't need to use CFont, but it's easier.
There are two ways:
a) fill a LOGFONT structure with all the informaiton required, then can CFont::CreateFontIndirect
b) Get the current font from the edit control, get it's properties by calling CFont::LogFont, change the height in the LOGFONT structure, and create a new font (again using CreateFontIndirect)
b) is probably better, and a little bit easier too...
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygen
|
|
|
|
|
hi all
i got the problem that my application's ExitInstance is not called. i traced and found that ::GetMessage in CWinThread::PumpMessage never returns FALSE. it seems that WM_QUIT is handled somewhere else, because my application exits normally via menu or by clicking on the main frame's close button.
any idea?
thanx
|
|
|
|
|
MSDN: Device Installation Functions
This section describes the Setup functions that support device installation on Windows 2000 and later versions of the NT-based operating system.
... Most of these functions are not supported on Windows 9x/Me.
I want to install a small driver that only have a single sys file like DDK PortIO sample.
|
|
|
|
|
take a look at here: http://support.microsoft.com/?kbid=324409
-Tareq
|
|
|
|
|
Im using a Java dialog to call a C++ app using JNI, All I want to do is pass an object into the cpp app, there is no writing to be done in the class, just passing strings and bool values. How do I change my main() in cpp to be able to accept this object and be able to compile it into a .dll
Any articles or help is appreciated.
Cheers
We have a mathematician, a different kind of mathematician, and a statistician!
|
|
|
|