|
Thanks jc0dex for the resources : D. I know what MFC means and I know some stuff about it. I also know message systems very well, and how Windows works, since I used a lot of types of hooks and DLLs with hooks. I didn't understand where does MFC fit into all of this.
Do you think that I can use bitblt / some function to copy the contents of the window even if its changing from second to second and it's hidden??
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Wow I was totally off base, I thought you were less experienced than you are, I apologize.
What EXACTLY are you using this copying over concept for ... maybe if I knew what you were trying to complish this for I could come up with an alternate solution, but don't know why you would want to do that at the moment.
|
|
|
|
|
No problem. I'm not that experienced but I not as beginner either : D.
Trust me, I tried all the possible alternatives. GDI is the only way to go. I'm trying to tamper with a particular window from the operating system which is very very rigid. That is, the clock window. I want to overwrite its contents with something made by me. So I have a window, the source, that contains some stuff that I want to put in that systray clock window. You can imagine now, why I want to HIDE the source window, my window.
I am almost certain that I can do this by drawing a DC with GDI directly in memory. That's possible right? Drawing something virtually and then just copying over the systray clock. I don't know how to do that either but I think it's possible.
But definetely, the best solution would be to be able to take stuff from my already-made window and dump it in the systray clock window : D. That would be cool 'cause my window already contains everything nicely formatted, and I wouldn't be forced to start re-inventing the wheel, that is, drawing everything again using GDI.
Also, the contents of my original window changes constantly, every second to be exact. That's the real problem : ). After I hide it, I need to refresh the systray clock's aspect from that window of mine. And bitblt only copies whatever is on screen at the X and Y coordinates with Z and W width. Annoying. So if my window's hidden, bye bye bitblt.
So far I did everything with API. I don't want to use MFC... it makes your life easier but it's not mandatory to use it. API is just as cool. I want to make this as small and as portable as possible. Anyway, you got the picture I guess... in the meantime I'm making all sorts of experiments with this issue.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
hii guys how r u all im with the visual c++ and i need ur help i need to upload file frm pc into adatabase if anyone can help it will be gr8 thanks anyway
|
|
|
|
|
haes wrote:
frm pc into adatabase
Hello There,
Could you tell me where exactly your database situated? secondly,Could you please mention the name of database?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
first thanks for replaying
the files will uploaded frm pc of a client into a server database (MyDataBase)
|
|
|
|
|
Hello Mr Haes,
If your database reside on Internet/Intranet Based Server you have to make Three Tier application.
i.e.
Your VC Application ---> Through POST/GET method post data to server <--> Middle Layer Validate it <---> Store in database!
This article demonstrate Data POST/GET:-
http://www.codeproject.com/internet/amhttputils.asp[^]
For Storing the data in database, Please refer manual of Web language you are using.
"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 need to start a timer when a button is pressed and then stop the timer when the button is released.
I think I need to sub-class CButton as dont have the WM_KEYUP or WM_KEYDOWN events in the CButton class.
Can someone point me in the direction of how to sub-class a control in Visual Studio 7.1 please.
Many thanks,
Graham.
grahamfff
|
|
|
|
|
|
write the start timer code and Stop Timer code on the BN_CLICKED event of the button. Change the caption of the button to "STOP TIMER" when the timer starts.
Check the caption of the button before branching to the appropriate code.
|
|
|
|
|
I have a date time stamp which I have read from a file. I have read it as ascii characters and have stored it in a character array as follows:
The data is stored in the reverse order in the file where I read it i.e. [0] [1] [2] [3] [4] [5] [6] [7] has to be reordered as [7] [6] [5] [4] [2] [1] [0]. The bytes are put into a character array as a hexadecimal representation of a timestamp.
(actual example)
dt = "0x01c5556a92792c8c0"
Now in order to pass it to the localtime function I need to convert this ascii hex representation of my timestamp to an int64. I must be having a senior moment but I can't figure out how to do this (seemingly simple) operation.
Could someone more experienced please help me with this?
Thanks
|
|
|
|
|
Maybe not the shortest way, but should work:
__int64 test;
char buf[128];
const char dt[] = "0x01c5556a92792c8c";
memset(buf, 0, sizeof(buf));
for(int i=0;i<8;i++)
{
int n = strlen(dt) - ((i+1)*2);
sprintf(&buf[i*2], "%c%c", dt[n], dt[n+1]);
}
sscanf(buf, "%16I64x", &test);
Kuniva
--------------------------------------------
|
|
|
|
|
Well i have this perfectly terible text type game that, for testing purposes i want to have a DOS version of. (At the moment its just a console app, not DOS compatible)
Here is a sample of the code, and yes its pretty much all like this:
********************************************************************
//The text based carrot game brought to you by me
#include
using namespace std;
int main()
{
char a [50];
char b [50];
char c [50];
char d [50];
char e [50];
char f [50];
char g [50];
char h [50];
char i [50];
char j [50];
char k [50];
cout <<"This game was written by -. HELLO and welcom to the CARROT ADVENTURE TRILOGY wich contains all 3 carrot advantures. Enjoy.";
cout <<"\n\nYou are a carrot with no family and no friends and are rather quite lonely, have a look for an inanimate abject to be your new friend, what can you see?\n";
cin.getline (a,50);
cout <<"\n\nCONGRATULATIONS you have found the ";
cout <
|
|
|
|
|
AFAIK, if you restrict yourself to the C++ Runtime functions, your code should run (after compiling it with a 16 bit compiler, of course).
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
The Undefeated wrote:
At the moment its just a console app, not DOS compatible)
I'm not sure exactly what it is that you are asking. A console application is one that runs from a command prompt. By the use of cout and cin in your code snippet, it certainly qualifies.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
you can use any of the VisualC++ versions, with C or C++, any of the C-runtime stuff, any of the C++ runtime stuff, including the STL, MFC, etc.. you can use C#, if you want, too. there aren't many limitations.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
I thought the OP wanted to write a true DOS app, i.e, one that runs on a system running on just DOS and no Windows.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi,
I want to develop a printer driver which will be installed in the Printers folder and will print the document to a JPEG file. Irrespective of the application firing the print job, if this driver is selected, then the output should go as a JPEG image.
Eventhough I have more than 4yrs expirience in VC++, I am very much new to this space of driver development. So I would like to get some starter documents or some sample codes. If anyone of you have come across similar things in the past, kindly send me the details.
Thanks and Warm Regards
Jugs
|
|
|
|
|
I have a CListCtrl derived control on a dialog using the report style. The dialog has a BMP as a background. Using SetBkColor and SetTextBkColor I have made the CListCtrl transparent, allowing the BMP background to show through. This works correctly, with one exception, the first column. This first column is not drawn transparently, but is instead drawn with a black background. All other columns are drawn transparently.
I have attempted to force this cell to be drawn transparently by handling the NV_CUSTOMDRAW and WM_CTLCOLOR messages, but have so far been unsuccessful. Am I on the right track here, or am I missing something obvious?
|
|
|
|
|
I'm looking for the WIN API function or process
to determine the user name or SID who currently has a specific file open.
Much like the old windows FileManager "Open By" capabilty
thanks
|
|
|
|
|
what is the best book for learning the visual c++.net
ddd
|
|
|
|
|
The term "best" is very subjective. What's best for you might not be for someone else, and vice-versa.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
It very much depends on what you want to do with Visual C++.
Kevin
|
|
|
|
|
Hi,
If I am writing a toolbar application for IE using VS.NET, how do I debug my application?
If I set the Project properties' Start Application value to C:\Program Files\Internet Explorer\iexplore.exe, it is a release version and hence I can't debug.
How can I launch IE from my project and still debug my code?
-Thanks in advance
Hari
|
|
|
|