|
so i have to use win32 app or mfc?
it is still using c++ programming?
or the different is just the Project?
|
|
|
|
|
You can develop a console application using Win32, MFC, or both. You can also develop a GUI application using Win32, MFC, or both.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello All
I want to programatically send email to my ID (Yahoo or gmail) with an attachment. I am very new to email programming. Can any one suggest where to start with?
Thanks for your time
BlrBoy
|
|
|
|
|
|
Hi All,
I use dc.GetPixel() dc.SetPixel() functions to render bitmaps with my color and then StretchBlt on to my Paint dc.I do StretchBlt of around 16 bitmaps on Paint DC.As a result my painting is delayed by 3 secs.
So, Is there any otherway other than GetPixel() and SetPixel() to reduce the delay?
Thanks in Advance
Today is a gift, that's why it is called the present.
|
|
|
|
|
A replacement to GetPixel, is to use GetBitmapBits and access the memory directly.
<br />
BITMAP bm= ###;
<br />
int datasize = bm.bmWidth*bm.bmHeight*bm.bmPlanes;<br />
COLORREF* lpClrData = (COLORREF*)LocalAlloc(LPTR, datasize * sizeof(COLORREF));<br />
DWORD ds = GetBitmapBits(hBitmap, datasize * sizeof(COLORREF), lpClrData);<br />
<br />
COLORREF pixelColor = lpClrData[y*imageWidth+x];<br />
<br />
This is much faster that GetPixel...
I haven't had to deal with SetPixel (but i'm sure with the above you should be on your way to finding a solution).
Cheers,
Jubjub
"If you're too careful, your whole life can become a f---in' grind." - Mike McD ( Rounders)
|
|
|
|
|
Jubjub,
is this work with any color resolution?I remember that I try something similar in past,...and I remember that I fonund many problem if the system was 16k colors, where 2 Bytes are used to define the pixel color.
Russell
|
|
|
|
|
narayanagvs wrote: to render bitmaps with my color
What do you mean by this? What are you actually doing with the pixel values?
This would determine how best to efficiently access the pixels IMO.
If you need pixel access then I would recommend using a DIB section, which gives you an HBITMAP
for GDI operations along with a pointer to the pixel bits for direct manipulation.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Hi everyone
I called CFileDialog.DoMOdal() like this, for save file.
CFileDialog OpenDlg(FALSE ,"Lic", "*.Lic",OFN_FILEMUSTEXIST| OFN_HIDEREADONLY, "*.Lic", this);
if exist new file name in selected path I want show a warring for file replacing.
How do you do it? Please help me.
|
|
|
|
|
Have a look at OFN_OVERWRITEPROMPT flag.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
thank u very much
good luck & Good bye
|
|
|
|
|
Hi All,
I'm writing an ActiveX control, and one of the methods needs to return an array of bytes. This array then needs to be used in Javascript and posted via the MSXML2.XMLHTTP (send).
I've create a method in my ActiveX class that returns a VARIANT, but what ever way I try to create the VARIANT, this fails.
Either I get "type mismatch" when I try to use the data returns, or I get a "Variable uses an Automation type not supported in JScript".
Does anyone know some easy way to return a byte array and use in javascript?
Cheers,
Jub
"If you're too careful, your whole life can become a f---in' grind." - Mike McD ( Rounders)
|
|
|
|
|
Hello All,
Let me introduce myself. I am a programmer.
I have been implemented encryption algorithm in pure VC++. It is standalone application. It has dialog box for taking source file name (Plain text file) and destination file name (Encrypted text). It is working perfect.
Now I got new requirement that, I have to integrate this algorithm in explorer as toolbar. I created toolbar and integrated my code. Now I have to send some information to server which has been implemented in J2EE. My question is I am which technology I can use to passing information from client VC++ to server J2EE. And also server will send response client has to process.
I have to implement client side program and one of my friend is working in server. He is asking to provide jar file. Can I know how can I do that? Or Can I use JNI or DCOM server? Please suggest me on this.
Thanks in advance,
Chandu
-- modified at 2:00 Thursday 5th July, 2007
|
|
|
|
|
thats not the problem buddy.. which ever technology u use it will work. because the network protocols are independent on the technologies.. so when u r communicating between server and client that communication is between two sockets ....
Vishu,
Software Developer,
Target Corporation.
Bangalore.
|
|
|
|
|
|
Jayapal Chandran wrote: so i got a doubt like dev-c++ may not be completely support writing global hooks in it...
IMHO there should be NO problem.
Jayapal Chandran wrote: i dont want to use visual c++ because i want the code to be in Win32 api...
Actually, you can do Win32 API programming (even plain C) with Visual C++ .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
now it is working... after using the concept of shared variables using #pragma data_seg...
|
|
|
|
|
Jayapal Chandran wrote: it is not working properly...
What's wrong?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Why would you need to store a global variable in a different data segment?
Jayapal Chandran wrote: is pragma the only way to do that?
I'll take a guess and say no.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
I using more than 50 dialog resources in my application..when i click on any of those my system will hang and i have to wait a lot . . .
My System config is...
P4 2.80GHz with 1Gb Ram
Processes running-
AVG antivirus
wdfmgr
svchost(5 instances)
DXDebugService
VsTskMgr
msmgs
mdm
lsass
winlogon
services
cvslock
can any one help me out. . . .
Thanks in ADVANCE . .
|
|
|
|
|
thenewbee wrote: when i click on any of those my system will hang and i have to wait a lot . . .
are you handling the click event of the mouse?
May be there is some indefinete/infinite loop running in your code. I guess it would be very hard to detect the error without you posting some relevant code or describing the exact scenario.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Can you more explain about your program and how do you call them how do you make these dialogs and what are these?
|
|
|
|
|
Oh sorry i forgot to mention - prob is in resource editor not when the program is running...
|
|
|
|
|
When you run your program it works? and did you use of breakpoint on your code?
|
|
|
|
|
its working fine when i run myu program . .. Ima telling about the designing. when im designing the dialog box or any resources. . . my VC6.0 hangs out...
|
|
|
|