|
Is it possible to browse a Local Network for 'Named Pipes', Ifso, How do I go about it.
Regards
Bram van Kampen
|
|
|
|
|
I am trying to prevent the user from clicking, holding, and dragging the toolbar in an application I wrote. The application uses Stringray controls (RogueWave), MFC, and COM. I believe the trouble is working with Stingray Studio. Can anyone give me some direction? Thanks.
|
|
|
|
|
Hello All,
What's the best way for someone, who knows just enough of C++ to know what to search for on the internet and piece programs together that way, to get VC6 programs to compile under VS2008. It there a way to get the compiler to ignore pieces of code that do not comply with new standards? or is there some software that will rewrite the old code so that it will comply with newer standards? or is there another way of doing this that doesn't require me to fully learn the historical development of C++ under windows?
Thanks,
G
|
|
|
|
|
Someone else might have but I haven't heard of anything that would upgrade non-compliant code to current standard.
Is there some reason that you could not use a prior version of Visual Studio to get the code to compile? That would be the only way I know of.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Just think how much more C++ you'll know after upgrading the code to current
standards yourself
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Ylno wrote: It there a way to get the compiler to ignore pieces of code that do not comply with new standards?
While it won't solve all that ails you, check out _CRT_SECURE_NO_DEPRECATE .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
It seems you are new to c++,do you want to compile your old project on the VS2008,after compile VS2008 give you a report of errors and warnings.
|
|
|
|
|
Recently (last two or three weeks) I read an article from a link in the newsletter. It was about something else in C/C++ but near the top it had some comments on enum and typedef and why they should seperated. It also had something about always adding a begining and ending reference to use with loop itterations. I believe the example had something to do with days. If anybody remembers the article I'd appreciate a heads up. I searched for it but couldn't find it.
Jay
|
|
|
|
|
|
That was a good suggestion but it didn't help. I went through the last several months and didn't find the article. I do get more than one email a day from CodeProject so it must have been in something besides the newsletter. Thanks for trying to help.
Jay
|
|
|
|
|
Hi,
My application working fine in the dev environment.But in the testing /production environment
it is not working because that environment has only
windows server 2003
IIS
I have prepared a MSI which will automatically install .net2.0 framework
In my application I have Used some microsoft VC++ dll's also along with .net dll's.
Now Iam getting "RUNTime Error" pop-up screen message as below
" The Application has been terminated in an Unusual Way"
On googling i came to know that some dll's like msvcrt.dll of windows server 2003 has to be changed...But Iam not pretty sure about it..
In Production/test environment there is only framework installed ,but there is no visual studio installed on it.may be due that this error may occur...
So kindly post your suggestions and views to help me
|
|
|
|
|
You have to install VC++ redistributable.
-Saurabh
|
|
|
|
|
It seems that its a conflict between dll files.
|
|
|
|
|
Hi,
Iam thankfull for your valuable information..
In my case initially it was running fine...later after 5 mins Iam getting started to see that error..
Iam not getting any Idea to solve it...
Any help appreciated..Iam in Production stage...help me
|
|
|
|
|
|
I tried the following as suggested by you:
1. I have installled the redistributable package suggested by you.
after installing i restarted the PC even now also I got the same runtime pop-up error.
2. Then I checked even with the dependency walker for the dll.
I found that there is no miising dll.
3. Then I tried by installing Visual C++ express edition..even then also i got the same pop-up error.
Kindly help me.....
|
|
|
|
|
Almost I forgot your question I was thinking that I didnt asnwer to Application Terminated question but now I saw you asked this question 22 Sep .
On the project setting (Configuration properties->General) did you use of Use Standard Windows Libraries?
------------------------------------------
Can you more explain about your program,please if its possible for you:Its a service or database or directx or device driver or...? I have windows server 2008 on the system and I can compile your project(I will be compile your project and if it shows this error on windows server so I will be instal visual studio 2008 on the windows server and i will be compile your project on the windows 2008 so we will be find whats the problem is this problem of windows or you must be change some code of your project) of course if you like.
|
|
|
|
|
Hey everyone,
I'm writing an application in which I need to convert an input of virtual key codes to an ASCII output. Currently I have something like this:
if (logchar>0x40 && logchar<0x5a){
if ((shiftKeyDown==FALSE && capslockKeyDown==FALSE)
|| (shiftKeyDown==TRUE && capslockKeyDown==TRUE)) logchar+=0x20;
}
else if (logchar>=0x30 && logchar<0x40 && shiftKeyDown==TRUE){
switch(logchar)
{
case 0x31:
logchar='!';
break;
logchar contains the virtual key code.
So far, I've successfully implemented the alphabet. Unfortunately, I can't convert other symbols like ,./<>?;':"[]{} etc. I have absolutely no idea what logchar would equal if the input is a key like ~ or |. If anyone could give me a list of the virtual key codes for each key on the keyboard that would be appreciated.
And if there is any other function that would make this easier that would also be appreciated. I'm doing everything with switch and if/else statements and it's getting quite messy.
Thanks in advance.
|
|
|
|
|
You cannot use MapVirtualKey(...) along with the state of the modifier keys (like <SHIFT>)?
Also, a list of Virtual Key codes is available in the MSDN documentation.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Thanks! This is almost what I'm looking for. I haven't tried implementing it yet, but from the documentation on MSDN it looks like it'll do the job I want it to do.
I'm pretty sure I can detect the modifier keys and change the output with an if/else statement.
I'll try that and see how it goes.
Thanks again.
Edit: Ok. It works now. The only problem that I have no idea how to fix is how to convert symbols. Like, for example, if the input is a vkcode for [ or ] or \, the output comes out as 0. Does the MapVirtualKey function support symbols? Or is it just letters?
modified on Tuesday, September 23, 2008 12:43 AM
|
|
|
|
|
Why don't you handle the WM_CHAR messages instead ?
What kind of application are you doing (MFC, win32, ...) ?
|
|
|
|
|
I'm writing an MFC application.
I can't handle WM_CHAR because I'm getting the vkcodes from a LL_keyboard hook.
|
|
|
|
|
You might want to check out ToAsciiEx()[^] too.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Just one question about that function: what's a hardware scan code? MSDN says
uScanCode<br />
[in] Specifies the hardware scan code of the key to be translated. The high-order bit of this value is set if the key is up (not pressed).
Also, for lpKeyState, MSDN says
lpKeyState<br />
[in] Pointer to a 256-byte array that contains the current keyboard state. Each element (byte) in the array contains the state of one key. If the high-order bit of a byte is set, the key is down (pressed).<br />
<br />
The low bit, if set, indicates that the key is toggled on. In this function, only the toggle bit of the CAPS LOCK key is relevant. The toggle state of the NUM LOCK and SCOLL LOCK keys is ignored. How would I obtain that? I'm getting input from an LL_keyboard hook, so is there any function I could use?
Finally, I'd like to ask whether this function can map symbols like ,./<>?;':"[]\{}| as well. The MapVirtualKey function can't do that as far as I'm concerned.
Thanks for your response
|
|
|
|
|
Yes, ToAscii can map symbols like those too. What's special with those characters? After all, they are the outcome of a keypress and I am sure that must work.
I wanted to write a sample application for you, but I was (and am) just too busy. I'll write to you in a day or two. Ping me back if I forget and if you were not able to do it.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|