|
What?
Let's see if I can decipher this -
You have VC6 source code that compiled fine in XP (with VC6 I presume) but didn't compile in Vista?
You had to re-write the code for Vista and it now compiles and runs fine, right?
Not sure what you mean by "reuse". Please explain.
|
|
|
|
|
Hi thanks to your replay..
yes u r right ..i am asking how to reuse that compiled code in vista?
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
rowdy_vc++ wrote: 1. Then how to reuse the compiled vc++ 6.0 code in vista?
That would depend on what code you had to change. Getting it to compile on Vista vs. getting it to run on Vista are separate problems.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi friend..thanks to your replay
i am asking is there any possibilities to reuse that compiled code in vista ..but i know "Getting it to compile on Vista vs. getting it to run on Vista are separate problems. "
please suggest me!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
rowdy_vc++ wrote: i am asking is there any possibilities to reuse that compiled code in vista
Yes, the possibility does exist.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi, i need to use the CreateDesktop function and want to change the wall paper... i haven't started coding... i want the basic concepts for the above... like the working of CreateDesktop and changing the wall paper... then msdn is ok... but changing the wallpaper???
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
what about IActiveDesktop::SetWallpaper() ?
|
|
|
|
|
i am using C language for win32 ... i searched that in google and got a msdn link about IActiveDesktop ... and i am on it... anyway, is there any other function to do that or some other steps with win32 API?
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
May be you don't know that C langauage can interface with COM.
|
|
|
|
|
ofcourse, i concentrate on files, registry, winsock2 and now struggling with wininet... and not much with appearence... i just know the basic of windowing... by using the basic controls... anyway ... thank you...
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Have you tried SystemParametersInfo(SPI_SETDESKWALLPAPER, ...) ?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
how to set non-bitmap images as wallpapers ??
|
|
|
|
|
tina- wrote: how to set non-bitmap images as wallpapers ??
what typeof image, AFAIK, every image is displayed as bitmap image!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Hi All,
I have developed the project in ATL in which I am getting events from the browser window through Invoke() function of the IDispatch interface.
And my question is that I want to get Mouse Click event with the element id on which event has been fired.How can I do that?
I tried below code to do the same but I m not getting success.
STDMETHODIMP CSimpleTab::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams, VARIANT* pVarResult,
EXCEPINFO* pExcepInfo, UINT* puArgErr)
{
switch (dispIdMember)
{
case DISPID_HTMLELEMENTEVENTS2_ONMOUSEDOWN:
{
CComVariant dis_event;
dis_event = (CSimpleTab *)(this);
IDispatch *lpDispatch = pVarResult->pdispVal;
IHTMLEventObj * eventObj;
HRESULT hr = lpDispatch->QueryInterface(IID_IHTMLEventObj,(void **)&eventObj);
IHTMLElement * element;
eventObj->get_srcElement(&element);
}
}
}
in above code I m getting null in to the pVarResult->pdispVal parameter.
Do you have any idea why does this happen?
Thanks in Advance.
Ashish Bhatt,
Indianic,Ahmedabad.
|
|
|
|
|
You've already posted your query in the ATL forum, which is more appropriate. Just have patience and wait for replies.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
ok sorry,
But I got stuck at my work so that's why?
Ashish Bhatt,
Indianic,Ahmedabad.
|
|
|
|
|
ashish@indianic wrote: But I got stuck at my work so that's why?
What's the correlation between getting stuck at work and posting a question on the wrong forum?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
On the event handler get the event from the html document,
IHTMLDocument2::get_parentWindow(); the window that received the event
IHTMLWindow2::get_event(); get the event object from window
IHTMLEventObj::get_srcElement(); get the element which fired the event
IHTMLElement::get_id(); get the id of the element.
find the source code for this in MFC src directory, in the file dlgdhtml.cpp in the function CDHtmlEventSink::FindDHtmlEventEntry which is called from CDHtmlEventSink::Invoke();
or go for CDHTMLDialog, very easy to use, you just want to add the message handler
DHTML_EVENT_ONMOUSEDOWN(elemName, memberFxn);
I used some code from the CDHtmlDialog and modified for my requirement some months before, as CDHtmlDialog cannot handle event when more than one frame (IFrame, frame) exists in the main html page.
|
|
|
|
|
Hi gang,
my application deals with a lot of windows, popup or mdi, having their own wndproc depending on what they have to do...
I'm searching a way to have a topmost popup window limited to the application (ie not top most for other apps).
I've tried to use the SetWindowPos( ... HWN_TOP ) in the WM_WINDOWPOSCHANGED of WndProcs but it gives to many WM_PAINT...
VC6, Win32API, no ATL neither MFC.
Some tips?
Thanks,
PS:i searched the archive w/o success (maybe my fault), sorry if the answer has already been posted
Fred
|
|
|
|
|
If you set the main window to the be parent of your child windows, they will always appear above the main window.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
dear all
how to calculate 3x3 or 5x5 Gaussian mask step by step?
please forgive me to ask such stupid question, i really could not solve it, also asked some colleagues, couldn't get proper answer.i also get some idea via searching in google, no more detail.
thanks a lot
Li Zhiyuan
|
|
|
|
|
li zhiyuan wrote:
how to calculate 3x3 or 5x5 Gaussian mask step by step?
Have you tried here? Does this help?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
See for instance http://www.pages.drexel.edu/~nk752/cannyTut2.html#Step%201[^]
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I have a question about the sample "chap_09\ZFXInput" of the book "3D Game Engine Programming".
I used the VC++2005 to compile the sample "chap_09\ZFXInput".
But it appeared one error as below:
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\data1\akira recent study\3d game engine programming\chapter data\chap_09\zfxinput\zfxdi\zfxjoystick.cpp 12
How do I solve this problem?
// File: ZFXJoystick.cpp
#include <windows.h> // type definitions
#include "ZFXDI.h" // class definition
extern bool g_bLF;
// Yeah, evil callback stuff. Let's rock C++, let's rock!
ZFXJoystick *g_pThis=NULL;
CALLBACK gEnumJoyCallback(const DIDEVICEINSTANCE* pInst, void* pUserData);<======problem
|
|
|
|
|
The problem is that your gEnumJoyCallback declarations has no return value.
vc++ requires you to explicitly set one. you can fix this by using the return type void, what does in fact mean "no return value":
void CALLBACK gEnumJoyCallback(const DIDEVICEINSTANCE* pInst, void* pUserData);
Don't try it, just do it!
modified on Thursday, February 28, 2008 10:31 AM
|
|
|
|