|
Thanks Anyway...
I thought someone may have some idea of making it possible.
|
|
|
|
|
If you are good at reverse engineering, you can try to find a call to that function. Than look at the sthings that are pushed onto the stack. That should give you an idea about how many variables are used by the api. There is one catch though, you don't know what the variables types are, nor do you know what they are used for.
I don't know why you need to do that, but if you're planning to use undocumented api's, I can only say that you should not! They are not documented for a reason. The could be subject to change, or complete removal, so in the long run, it will break your program.
I also got the blogging virus..[^]
|
|
|
|
|
I have a script that I have compiled on two different computers. On one the file size is 500kB, and on the other 1.23MB. Both were compiled with DEV C++. They both seem quite large given the script. Can anybody explain this. I should explain I am a beginner. The script is:-
#include <iostream>
#include <windows.h>
using namespace std;
int GetDir(char* dPath) {
WIN32_FIND_DATA FileData;
HANDLE hFile;
hFile = FindFirstFile(dPath,&FileData);
if ( INVALID_HANDLE_VALUE == hFile ) {
cout << "No files" << endl;
return false;
}
for ( ;; ) {
cout << FileData.cFileName << endl;
if ( 0 == FindNextFile(hFile, &FileData ) )
break;
}
return true;
}
int main() {
GetDir("*.jpg");
system("PAUSE");
return true;
}
Regards
Paul
|
|
|
|
|
don't you compile one in release mode and the other in debug mode ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Is it possible to make an application window that is larger than the desktop? Does Windows allow this? Or must I use the GDI to do this? Wouldn't the GDI just make an image of the app window without the true functionality inside? Thanks.
|
|
|
|
|
Anonymous wrote:
Does Windows allow this?
Yes!
look for [MoveWindow] api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I tried that.
I use the getcursor position func and to get the handle of an app window above my mouse cursor. For testing I used the calculator app. I called the api to increase the size. Strangely the width increased, but not the height. The width never increased greater than the width of the actual desktop. I call MoveWindow(mywindow, 0, 0, (width * 100), (height * 100), TRUE). I've tried setting the x,y position to be the center of the screen. It will draw the app window; half on screen half off screen. However, the total window size is never greater than the desktop size.
Sorry if this is a repost
|
|
|
|
|
Anonymous wrote:
Is it possible to make an application window that is larger than the desktop?
Why?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Is there a way to add controls to the Windows taskbar. I can create icons. I've tried app bars, but they take up too much space (I only need like 3 buttons) because I end up creating in essence a 2nd task bar on the screen (Window's task bar on the bottom and my app bar on the right side). How about making separate icons for each "button"? That's the only other solution that I can think of.
|
|
|
|
|
i trying to disable mouse wheel in comboBox , i try to find this option in propertise but i dont find this option .
In comboBOx control i also can`t find this option.
Someone can Help me ??
How can i do it ??
|
|
|
|
|
In my VC++ application i have a bitmap of the class CBitmap. How i can get the binary value of a pixel from that bitmap. Whether it is possible to get the value using BITMAP structure or by using CImgeList.
|
|
|
|
|
if you need quick access to all pixels, you'll need to use GetDIBits . that will give you a DIB, which is a BITMAPINFOHEADER struct followed by the pixel data - vertically flipped, probably stored in BGR order (maybe BGRA depending on your video driver), with pixel rows padded to multiples of four bytes.
Image Toolkits | Image Processing | Cleek
|
|
|
|
|
Look for [GetDIBits] api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ANother way would be to select the bitmap into a DC and use GetPixel()
If you vote me down, my score will only get lower
|
|
|
|
|
Roger Allen wrote:
DC and use GetPixel()
How?? I believe we first have to paint the Bitmap into Window then we can use GetPixel() method!
is there is any direct method to do so!if yes please tell!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
A bitmap only needs to be selected into a DC for you to access it. Here is some example code extracted from my OD menu class:
COLORREF backgroundColour = 0;
{
CDC dcCopy;
dcCopy.CreateCompatibleDC(NULL);
dcCopy.SaveDC();
dcCopy.SelectObject(&toolbarBitmap);
backgroundColour = dcCopy.GetPixel(0, 0);
dcCopy.RestoreDC(-1);
dcCopy.DeleteDC();
}
If you vote me down, my score will only get lower
|
|
|
|
|
thanks i am looking for it quite long time!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hello everybody, i have a simple questions i think, but i don't know the answers:
Before all, i have to say that i have create a andministrator and an limited user account.
But my questions are:
1) If we add a shortcut to the Start Menu | Programs | Start Up of our application but in the administrator account. It will starts to work if for example we log in in the WXP with the limited account. And if it starts to run, we can prohibite to the limitate account to don't stop the application?
2) If we add a entry in the registry to start our application, how we can stop to the user to don't delete this entry in the registry?
Thank u for the possible help.
|
|
|
|
|
Hi,
My SDI program was opening all saved files , that was saved by it ( in its Extension).
Error Message displayed by program is "Unexpected file format"
I made a Change in Serialize variables ( i added one more)
Now the Program is not opeing old Saved Files.
But it can open Newly made and saved files after changing.
Any suggestion?
Regards.
|
|
|
|
|
you need to find a way to distinguish old-format files from new-format files.
one way is to use the version info in the Serialization object:
IMPLEMENT_SERIAL (CFoo, CObject,VERSIONABLE_SCHEMA|XXXXX)
void CFoo::Serialize( CArchive& ar )
{
CObject::Serialize( ar );
if ( ar.IsStoring() )
{
...
}
else
{
int nVersion = ar.GetObjectSchema();
switch(nVersion)
{
case 2:
read new version data
break;
case 1:
read data for that version
break;
case 0:
}
}
Image Toolkits | Image Processing | Cleek
|
|
|
|
|
But i have the following
IMPLEMENT_SERIAL (CFoo, CObject, 1)
For both Old one and for new one that has the add one more serialize vriable.
Will not it return same for
int nVersion = ar.GetObjectSchema();
If it will , then how can i handle it.
thanx
Regards.
|
|
|
|
|
zahid_ash wrote:
For both Old one and for new one that has the add one more serialize vriable
you have to change the version number when you change the schema.
Image Toolkits | Image Processing | Cleek
|
|
|
|
|
thanx i understand it. i will try on it
one more thing In
IMPLEMENT_SERIAL (CFoo, CObject,VERSIONABLE_SCHEMA|XXXXX)
is it neccesry to write VERSIONABLE_SCHEMA or only an integer is enough
as i did
IMPLEMENT_SERIAL (CFoo, CObject, 1)
thanx
Regards.
|
|
|
|
|
according to the MSDN on GetObjectSchema:
A CObject-derived class may use VERSIONABLE_SCHEMA combined (using bitwise OR) with the schema version itself (in the IMPLEMENT_SERIAL macro) to create a “versionable object,” that is, an object whose Serialize member function can read multiple versions. The default framework functionality (without VERSIONABLE_SCHEMA) is to throw an exception when the version is mismatched.
Image Toolkits | Image Processing | Cleek
|
|
|
|
|
HI
In my IMPLEMENT_SERIAL is as follows for both old and new versions:
IMPLEMENT_SERIAL (CFoo, CObject, 1)
then
int nVersion = ar.GetObjectSchema();
is returning -1 that means version is unknown .
now how can i distinguish the versions..
thanks
Regards.
|
|
|
|