|
If my project includes 85 dlls how to enable manifest on for some of them. If you have manifest it always using COMCTRL32 vesion 6 for all projects. I tried to unload version 6 and load version 5 but it didn't work Microsoft keeps always 6 in the memory if you have manifest. Is the any way to customize usage of manifest per project?
|
|
|
|
|
The wizard generated code for MFC apps adds code to stdafx.h to tell the linker to add the 6.0 manifest specific information.
You can make sure you don't have this code for the dlls where you want to load the pre-6.0 dll. I would think that you need to load the pre-6.0 before loading the 6.0 one.
gmileka
|
|
|
|
|
Is it only for VS2005 MANIFESTDEPENDENCY
|
|
|
|
|
Hi,
I need to implement my own virtual driver which pretends to be a serial port. Other application would know better if it was a real port or not.
I know that there are programs that alreaddy do such a thing. Just Google to find them
but i need to write it myself.
Does anybody have a clue where to begin or have the correct search criteria to find it myself in google.
Anyhelp would be very appritiated.
codito ergo sum
|
|
|
|
|
To get you started, you will need to open the serial port with shared access (instead of exclusive) from both ends. The best way to do this is to write a serial port class (or take one of the many implementations on this site) and modify the OpenFile call to use the flag for shared access.
Your application (the code connecting to the serial port) and the simulator (the code pretending to be on the other end) will both use this class and you can handle your data accordingly.
An alternative (and easier) solution is to take a serial cable and connect it from 1 port on your machine to another one. Have the application and simulator each open 1 end of and behave normally (basically, creating a loopback using hardware).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hi,
thanks for the respons. But I need to write the driver not the using application. Let me explain a little better.
We have already software that works with a modem. This software can't be changed its an "exe". The virtual serial driver emulates a serial port or even a modem but itself connects through ip for instance or whatever.
A have search a little further on google and I think i need to implement a DEVICE DRIVER.
Is this the path to go?
codito ergo sum
|
|
|
|
|
BadKarma wrote: We have already software that works with a modem. This software can't be changed its an "exe". The virtual serial driver emulates a serial port or even a modem but itself connects through ip for instance or whatever.
Emulates the serial port over IP? Do you mean you will just be passing the software the data it would receive over the serial port (if it was actually connected to one) via some other means?
BadKarma wrote: A have search a little further on google and I think i need to implement a DEVICE DRIVER.
Is this the path to go?
You could go that route, though, that would be my last resort. Perhaps a bit more about the requirements you need to fill would narrow down the problem.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Are you absolutely sure you must do this? Developing a device driver is time consuming, especially so if you do not have prior experience. I'm currently fiddling with device drivers right now, and I can tell you that it's far more complex than writing a user space app.
If you absolutely must write a device driver, I suggest you get a copy of Programming the Microsoft Windows Driver Model (ISBN: 0-7356-1803-8). What you need to do is to write a serial port minidriver - a driver which implements a serial device driver skeleton.
--
100% natural. No superstitious additives.
|
|
|
|
|
hi guys..
I badly need help. I need to iintegrate a progress bar in my program but is not able to get a gud code for progress bar in win32..
plz help me!!
thx
|
|
|
|
|
Hello! i'm needing to detect control + key combination on my PreTranslateMessage Method of a view i have. My code is as follow:
<br />
<br />
BOOL CTextView::PreTranslateMessage(MSG* pMsg) <br />
{<br />
long SOMETHING= 0;
<br />
if (pMsg->message == WM_KEYDOWN &&<br />
pMsg->wParam == VK_SPACE && <br />
pMsg->lParam == SOMETHING)<br />
{<br />
}<br />
<br />
return CScintillaView::PreTranslateMessage(pMsg);<br />
}<br />
<br />
I'm needing to know if this is the correct approach and if i'm right, wich value should i check lParam for, because i'been looking at the msdn library and i don't get it!<br />
<br />
Thanks a lot, <br />
Emmanuel<br />
<br />
Emmanuel Logan Oga
|
|
|
|
|
I Have solved this problem this way:
Thanks to a previous post!!
BOOL CTextView::PreTranslateMessage(MSG* pMsg)
{
switch (pMsg->message)
{
case WM_KEYDOWN:
{
switch (pMsg->wParam)
{
case VK_SPACE:
{
if (GetKeyState(VK_CONTROL) & (1 << sizeof(SHORT) * 8 - 1))
{
CString szAutoWords;
for (long n= 0; n < g_vszKnownWords.GetSize(); n++)
szAutoWords+= g_vszKnownWords[n] + _T("\n");
szAutoWords.MakeLower();
if (!szAutoWords.IsEmpty())
GetCtrl().AutoCShow(0, _tochar(szAutoWords));
return TRUE;
}
}
break;
case VK_F5:
case VK_F9:
OnExecute();
return TRUE;
}
}
break;
}
return CScintillaView::PreTranslateMessage(pMsg);
}
|
|
|
|
|
I have a picture control(static control) on my dialog box. then iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control.
Please do explain with example?
Thanks in advance,
Regards
Kumar_Windows
|
|
|
|
|
|
kumar_windows wrote: hen iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control.
could you tell me Which Interface or Api are you using to Display JPG,PNG format in PictureControl, as pictureControl only understand Bitmaps
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
i think he need to convert jpeg or png to bmp for use in static control
whitesky
|
|
|
|
|
WhiteSky wrote: i think he need to convert jpeg or png to bmp for use in static control
But he ask for something else, he want to resize the image, so i believe he must be using some interface or class from which he is reading such format!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
you can use from CImage or OleLoadPicture for read your graphic file and convert it to bitmap for use in static control
whitesky
|
|
|
|
|
|
|
ung.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: ung.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
d+ ung =?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: d+ ung =?
NOooo!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: NOooo
or Moooooooooo!??
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: or Moooooooooo!??
I don't have any COW stable nearby, do you have any?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|