|
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!
|
|
|
|
|
I have written a program, in which, I declared a global variable such as:
<br />
typedef struct{<br />
char buff[20];<br />
} my_struct;<br />
my_struct my_arr[1000][30][10][10][3];<br />
In particular: the size of my_struct is 20 bytes.
My calculation showed that the size of my_arr variable is:
1000*30*10*10*3*20=180.000.000 bytes or close to 180M.
But when I run that program, Task Manager showed me the program took only 3MB (in Mem Usage column).
When I started to fill data into my_arr, Mem Usage increased very quickly and program terminated abnormally.
Does anyone explain me about that situation? I used VC6 and MFC.
Thanks for reading.
|
|
|
|
|
May be it was optimised by the compiler and may be windows too.
so as and when you started filling up the data memory was allocated to it..
nguyenvhn wrote:
When I started to fill data into my_arr, Mem Usage increased very quickly and program terminated abnormally.
may be you overshot the buffer.
God is Real, unless declared Integer.
|
|
|
|
|
By my_struct my_arr[1000][30][10][10][3]; you are allocating memory in the stack, and I don't think the OS will allow your application to allocate that much(180MB) stack memory, so definitely it was going to be terminated abnormally. What I don't understand is why it did not crash right away... Yeah, I too hope some gurus explain it.
|
|
|
|
|
How many are limitation of stack memory!?
And if we need huge memory in global, how can we do it?
|
|
|
|
|
|
How many are limitation of stack memory!?
I think the stack memory usage per process vary throughout OS's but 180MB is unlikely possible.
And if we need huge memory in global, how can we do it?
uh?...You will of course have to allocate them from the heap.
|
|
|
|
|
but i heard in windows platform, every process can access up tp 4 GB of memeory. (2^32) ????
I want to change Myself..Can u help me?
|
|
|
|
|
|
renjith_sree wrote:
but i heard in windows platform, every process can access up tp 4 GB of memeory. (2^32) ????
I doubt its 4 gb, windows reserves 2gb kernel and 2gb for user applications.
God is Real, unless declared Integer.
|
|
|
|
|
Assuming 'global' means that my_arr is declared outside any function then the stack doesn't come into it.
What's happening is that the executable is being marked as needing more than 180M of memory and this much is reserved in the virtual address space of the process, but until you write (or read....) that memory it isn't actually allocated for real, in some cases you will never be able to have it all as real memory at once, it will be paged in and out from the pagefile as required. This is transparent apart from the slowness.
Anyway look at the 'VM Size' column in Task Manager (View->Select Columns, if necessary) I think you will find this shows a more likely amount.
I cannot explain why your program terminated abnormally unless you incorrectly accessed the array or your pagefile isn't big enough. Perhaps you could extract a small sample of the code you're using to access the array? I suspect you have an error in parameter order to that unwieldy array and are writing off the end.
Anyway the following code runs to completion and you end up with a 'mem usage' of 180M.
typedef struct{
char buff[20];
} my_struct;
my_struct my_arr[1000][30][10][10][3];
int main()
{
for ( int a = 0; a < 1000; ++a )
for ( int b = 0; b < 30; ++b )
for ( int c = 0; c < 10; ++c )
for ( int d = 0; d < 10; ++d )
for ( int e = 0; e < 3; ++e )
{
my_arr [ a ][ b ][ c ][ d ][ e ].buff [ 0 ] = '0' ;
my_arr [ a ][ b ][ c ][ d ][ e ].buff [ 19 ] = '9' ;
}
return 0;
}
Paul
|
|
|
|
|
I would like to be able to read a dialog template resource at compile time, for example I want to make sure before the program calls myDlg.Create(129/*IDD_DIALOG1*/, this) :
1) Is 129 a valid dialog template resource ID?
2) If yes, does the dialog associated with that template have WS_CHILD and WS_CAPTION style flags set?
Thank you.
|
|
|
|
|
|
FindResource() should do what you want. Also, check out EnumResourceNames() and EnumResourceTypes() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Heya,
I just did a search on the board and I got some different answers to this but I don't know which method to go for
What I have is a dialog template consisting of a tree control and now I want to add this tab control (property sheet) to it as well.
That is, I cannot just derive my dialog from the CPropertySheet class since I want other stuff on the dialog as well.
What's the best way to achieve this? Should I create a tab control and then somehow add property pages to each tab? If not, then how could I position the property sheet on before hand in the resource editor, etc.
Huge thanks in advance
|
|
|
|
|
I had a similar problem and i solved it this way.
Put a placeholder like static control on the dialog template that would be occupied by the propertysheet.
Then on the initdialog of the dialog, Create the propertysheet dynamically, add the pages, and use SetWindowPos to place the propertysheet at the static control placeholder.
I am not aware of anyother way.
God is Real, unless declared Integer.
|
|
|
|