|
Search for CRulerWnd/ CRulerWindow in codeproject,which allows to create/use custom control Ruler(Scale)
Warm Regards,
KKR
|
|
|
|
|
Thanx Mate,
Regards,
Prakash.;)
The World is getting smaller and so are the people.
|
|
|
|
|
How can I crack an encryped *.zip file or an encrypted Word document? as we have known, decryption needs its algorithm and its key, but we don't know the encryption algorithm of it, I want to try the key one by one by using a hacker dictionary,
how can I do it? I want someone will help me~
I am a Chinese boy
|
|
|
|
|
Prolly wrong place to ask that question...
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Hahaha man you are so sick...Password are put so that ppl like you dont read them.
|
|
|
|
|
don't put your nose into stinking things!
Don't try it, just do it!
|
|
|
|
|
ive used GetDIBits to get the bitmaps images RGB data into a
byte array
so effectively i can modify the rgb values of the image by just modifying the bits in the byet array buffer.
i tried creating a function
SetPixelColor(LPBYTE imgBuf,int column,int row,DWORD dwColor)
{
}
that is supposed to set the dwColor for pixel at row and column specified
however im having problems in mapping the row and column to the 1D LPBYTE buffer
please advice??
or is there any other alternative APIs
|
|
|
|
|
How can i change the text in the status bar for an SDI document >
|
|
|
|
|
try it !
probably
AfxGetApp()->m_hMainWnd->GetDescendWindow(yourstatusbarID);
Hello World!
|
|
|
|
|
I would like to write a proxy compatible with windows 98/XP.
I have looked at the articles here on CP and the two relevent articles don't apply to my particular problem I don't think.
For instance, the firewall example here on CP uses features specific to XP (I think). I want to write a firewall, but need it to work in win 98 also. Does anyone know of articles which might explain the different approaches used in writting a http proxy? basically I just want to capture HTML before being sent to browser, preferably both IE and Netscape. I have already considered using IWebBrowser2 to accomplish what I want to do also.
Edit Actually I really need to capture HTTP and HTML...so maybe IWebBrowser2 wouldn't work at all
Thanks
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
|
Coolness
Thanks
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
I want to design a windows program that can communicate using the serial port. I bought C#.net standard not knowing it did not have serial communcations framework and the work around is using MSComm.ocx from Visual Studio 6 which i do not have. Does C++.net standard have serial port communications framework? Or would buying Visual Studio.net solve my issue?
Thanks,
karl
|
|
|
|
|
For serial communication over COM port you have to use API functions like
CreateFile, WriteFile, ReadFile etc.
or alternatively you can use an OCX component, like MSComm.ocx.
Both ways can be achieved from C#, too.
Bunburry
|
|
|
|
|
Does any one know a fairly easy way to set the focus to a given edit control in a dialog box? Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
GetDlgItem(IDC_MYCONTROL)->SetFocus() ???
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
That's it. Thanks.
ralf.riedel@usm.edu
|
|
|
|
|
I also do myEdit.SetSel (0, -1); before setting focus to an edit control after displaying a validation error message. This prepares the control for overwriting.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I need to send data out in two short ints in a message. The source data is in floating representation, range -180.00 to +180.00. This needs to be converted into a scaled 32 bit 2's Complement integer value
So what I need to do is normalise the data;
i.e. float f = 99.9;
f = f/180; // 0.555
Now I need to extract the bits that reprsent the .555 and convert them to a 32 bit bit 2's Complement integer
I was planning to use the union as follows:
union
{
int intValue;
unsigned short buff[2];
}convert;
So once I have converted the float to int I can assign the buff[]
e.g. convert.intValue = floatToInt(f/180);
So now I can load the message using convert.buff[0] and convert.buff[1]
Note I need to check the conversion, so I am planning to do the following:
float f_out = (float) ((buf[0] << 16 | buf[1])*180);
Question how to I convert the float to int?
grahamfff
|
|
|
|
|
int i = int ((f/180.0f)*float(MAX_INT));
I don't remember exactly what MAX_INT is called. But it is in limits.h.
float f = float (i) / float (MAX_INT) * 180.0f;
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi everyone,
I am writing a win32 service that listens on a socket. When I run the application in a normal console window, it works fine. However, I cannot initialize the socket when I run it as a service. I found out that the following line was needed:
AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0);
However, this line does not work when I run the service. Coz I guess there is no WinAPP object. But the CSocket object does not initialize and the sevice dies.
Anyone has any ideas how I can init MFC sockets in a service. This is really urgent. I would really appreciate any help.
Thanks,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
For an easy way out, first read Xiangyang Liu's article Start Your Windows Programs From An NT Service[^]
This article presents you with a service, which is able to start programs before users log on and keep them running after users log off. This way, you don't need to ponder about how to implement MFC to a Win32 service. You can just write a full-fledged MFC application using the MFC App Wizard, and let the XYNTService worry about the rest.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Yeah,
I think I will go for that solution. Thank you so much for pointing that out to me.
Pankaj
Without struggle, there is no progress
|
|
|
|
|
Recently i did a packet capture on my network of what was being sent when i logged into my router and viewed the status page that has the current ip for my router (the ip for the internet side). To my surprise i saw a packet of the http connection that had some XML data in it, like the external ip-address for one. But then when i pressed refresh in IE, or i closed and relogged into my router it didnt send that XML data anymore. Now my question would be why is this? And is there any way i can surely get this XML reply from my router when i connect to it manually? (I don't know much about XML)
Thank you for any assistance.
Kuniva
--------------------------------------------
|
|
|
|
|
I desperately need help on setting up and using the FlatSB with C, no MFC.
I, by all means know nothing about C++ (btw, sorry if i posted this here), and I just migrated from VB.
I found some samples, like JonathanLivingstone's sample (http://www.codeproject.com/dialog/ScrollableChildDialog/ScrollableChildDialog_demo.zip) which is exactly i wanted.
I need to scroll (with FlatSB) my dialog which has about 50 editboxes & labels.
I know how to do this with VB. I just need to use canvas to group all of these controls, and then scroll it.
But I don't know how to do these with win32 API & C.
Please help me!
I really appreciate any help regarding this.
|
|
|
|