|
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
|
|
|
|
|
Hi,
Can any one suggest me how to set the minimum password length for windows
programmaticaly?. We could manually enter it in the specified path (controlpanel\ administrative tools\localsecurity policy\password policy\minimumpasswordlength)
Any relevant API's , registry keys or any suggestions would be useful for me .
Thanks
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
You set it via Group Policy via a password policy.
This can be set domain wide or as a Local Group Policy (LPGO)
-- modified at 11:50 Tuesday 23rd May, 2006
NOTE: this is not programmatically but this is how most IT shops would pass this down to 100+ machines. I'm guessing you've been asked to write something for your support group but they should already be managing the workstations via some policy based mechanism or script tool. Mention Active Directory/ Group Policy / Netware etc...
|
|
|
|
|
please give detailed differences between deep copy and shallow copy (also in terms of memory allocation)?
which ( userdefined or default copy --- constructor/ overloaded assignment operator) performs what ( deep/ shallow copy)?
thanx in advance
kumar_windows
|
|
|
|
|
kumar_windows wrote: which ( userdefined or default copy --- constructor/ overloaded assignment operator) performs what ( deep/ shallow copy)?
depends how they've been implemented.
i don't know what is a deep copy nor shallow copy, but a good copy operation should duplicate each data owned by the object copied (whatever copy conctructor or operator= ).
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
toxcct wrote: i don't know what is a deep copy nor shallow copy
In C++ a common use of deep vs. shallow is in reference to pointer members of classes. A deep copy will allocate it's own memory and copy the data. A shallow copy will only copy the pointer (address).
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|