Answer Questions
ahmedWebDev COM PORTS
How do I get avaliable Com ports in my computer for example com1 com2 com3 or /dev/ttyS0,/dev/ttyS1 ..... (linux/windows version) Thank you for helping Hello Re: COM PORTS Such questions are outside the scope of this forum - for the scope of the VC Language forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ok damien sorry I solve this problem as I open port if port doesnot throw exception this port is avaliable... ...Show All
Rob Smith Adding WorkingDirectory to project file (VS2003)
I've posted this question to the Visual Studio Source Control and SourceSafe (see here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=727768&SiteID=1 ). It was proposed there to ask my question here. I will quickly recap my question: Our project uses a non-default working directory to debug. It is "data\". The problem is that adding this value at Debugging > WorkingDirectory is not saved in the project.vcproj file, but in the .suo (Solution User Options) file. Therefore when a client checks out our project, the working directory is empty. It was suggested to try putting this option project.vcproj.user file, which I tried, but wasn't picked up my Visual Studio 2003. I wasn't sure of the format either of this file, ...Show All
JCJCJC My PE Loader cannot load EXE file which bulit with VS2005.
I need to write a Simple Loader which can run simple EXE(PE Format) file. My loader can parse PE header: IMPORT,EXPORT,RELOC...... I bulit AP.exe with VS2005, and AP.exe imported msvcr80d.dll. So when my loader parse AP.exe's import table and call LoadLibrary to load msvcr80d.dll, but it return NULL. I have searched some information on internet, and known the "manifest" file's effect. I have read http://msdn2.microsoft.com/en-us/library/ms235342.aspx Troubleshooting C/C++ Isolated Applications and Side-by-side Assemblies and related information. And I try some method to let my loader load msvcr80d.dll successful. For example: Before call LoadLibrary, I do open AP.ex ...Show All
Bander ALSHARFI Runtime Library Buffer Overrun causing shutdowns
Hi. I ve got a problem with one of the computers at my office. We are using Windows 2000 Professional (SP4) on it (just like on the other PCs at the office). For a few days now, i get the following message Micrsoft Visual C++ Runtime Library Buffer Overrun detected Program ...\system32\service.exe A bufferrun has been detected which has corrupted the programs internal state. The program cannot continue execution and must now be terminated. It wasnt always the service.exe program, i ve got a couple of other ones (all in the system32 folder) but since i ve run some clean up programs i only get this one. After i receive that message it takes a few secs and then i get another one telling me that the computer will shutdown in 60 seconds. I have ...Show All
thomaskremmel Upgraded project from old vs.net to vs2005 gives following error any suggestions?
C:\Program Files\Microsoft Visual Studio 8\VC\include\iosfwd(343) error C2039: 'wmemcpy_s' : is not a member of '`global namespace''error C2039: 'wmemcpy_s' : is not a member of '`global namespace'' Probably, you are using wmemcpy_s wrong way. Can you show , how you are using it Refer MSDN example for its correct use. 'wmemcpy_s' is probably a macro , so if your style is '::wmemcpy_s' MS compiler gets confused (easily). If that is the case remove scope '::' and it will work P.S. It is possible that in your code it looks like '::memcpy' - new version does us a “favor” of subsisting such calls with so-called safe versions, whatever we wa ...Show All
Sushisource Microsoft Visual C++ Runtime Library
I have experienced problems with my MusicMatch Jukebox. It became corrupt and fried my external hard drive with about 90 gigs of music/movies. I lost all of those files and had to reformat the drive as well as mess around with my PC's BIOS. Finally I uninstalled MusicMatch, reinstalled it only to have this message appear. Microsft Visual C++ Runtime Library Program: C:\Program Files\MusicMatch\MusicMatch Jukebox\mmjb.exe This application has requested the Runtime to terminate it in an unusual way. If anyone has any solutions or has experienced similar problems please help me out. I am not very knowledable with computers and not having access to music really hurts. Thanks help This thread is way off topic, so ...Show All
Praveen_wm Structure Alignment/Packing issue
I have developed a VC6 X application. In X application i am reading/ writing structures in the binary file. These files are used by Y application which is also developed in VC6. Untill now everything was working fine but as soon as i changed the order of struture members i have started getting junk values in Y application. I have changed the order in both the application but my X application is reading them properly from the file but my Y application fails to read from the same file. Can anyone tell me why is this happening. Any kind of help will be appreciated Thanks in advance Short of writing a set of semi-automated test cases, I don't know of a way to solve this for Zp1. It shouldn't be ...Show All
NBaig Visual C++ Setup project
I need to create installation package for my Visual C++ application. My program uses outside-vendor libraries that require some configuration at the production environment. Production deployment includes: - Creation of new Environment Variables (Global variables) - Registering DLLs with regsvr32.exe At Visual C++ development environment, I have created Setup project. What should be done to include “creation of new Environment Variable” in the Setup project That is, I want new "Setup1.msi" setup program create new Environment Variable on the production machine. Along the same line, what should be done to make "Setup1.msi" setup program to register DLLs with regsvr32.exe ...Show All
regthesk8r Problem with CFileDialog::OnTypeChange()
Hi, We have recently migrated our code base from VS 2003 to VS 2005 and we seem to have a problem with OnTypeChange() method of CFileDialog. We have sub classed from this class and have overridden the method OnTypeChange(). The problem here is when the "Open Save As" dialog appears, and we change the extension type from the "Save As Type" combo box, the file name is not getting updated properly. So I debugged this OnTypeChange() of our class method and found that this method is getting called twice when the "Save As Type" is changed. Inside this function we are using the function call GetFileName() and this method is not returining the correct file name when OnTypeChange() is called for the second time. Can ...Show All
tattoo Forms and Memory usage
hi, i setup a simple Form with nothing on it and compiled it then ran the application, it was in Visual C++ Windows Form Application but when running the application it was using over 15.000k of memory. is this normal for an application of this type just seems a lot of memory for one item that does nothing. thanks Please could a Moderator delete this thread as it is a double post and the answer was solved in another section on this forum. thanks and sorry for the double post Hello Deen, Please follow your previous thread at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=596224&SiteID=1 . Thanks, Ayman Shoukry VC++ Team thanks, i was looking for that earlier but didnt know where it went. ...Show All
XBPatel Help me to debug my C++ program
Hi Everybody, I need a help to modify my program. My program as follows, CPP / C++ / C Code: if (found) { // Read Lines below NODES while (getline(input, buff)) { // getline(input, buff); istringstream tmp(buff); // format the output string a, b, c, d, e; tmp >> a >> b >> c >> d >> e; output <<b << " " << c << " " << d << endl; cout << b << " " << c << " " << d << endl; } } I read data from files and put into another file. I am reading the datas as string, Now I want to add "1" to each data (ex: if data is 20 the output should be 21). ...Show All
NewWorld More PDH trouble...
And now, I don't have the slightest clue where I'm going wrong - hey, at least it compiles. Here's the code: /* Este arquivo trata de verificar a carga de * processamento e a memoria livre do computador. * O resultado destas funcoes sera usado dentro da * funcao main e enviado para o cliente atraves do * servidor, a cada pequeno periodo de tempo. * Estas funcoes usam a interface PDH (performance * data helper), que interage com o registro do Windows. */ #include <windows.h> #include <stdio.h> #include <pdh.h> #include <pdhmsg.h> long getload(void){ PDH_FMT_COUNTERVALUE value; PDH_STATUS status; HCOUNTER pCounter; PDH_RAW_COUNTER raw1; LPDWORD type = NULL; WORD dwUserData = 0; PDH_HQUERY query = NULL; char c ...Show All
Alfonso Calderon VC2005: Auto-increment build information
How can we set-up projects with VersionInfo and/or Assembly Version information which get their VersionInfo and/or Assembly build version number incremented when a build is done in the IDE Check this webpage and note how to automatically increment the build number with "*" in AssemblyInfo.cpp. If you still include a version resource, you'll have to increment the build number and keep them synced with the assembly version by hand. Since Windows Explorer can now display the assembly version, you really don't need the classic version resource anymore. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=139291&SiteID=1 . Hope this helps! Thanks, Ayman Shoukry VC++ Team Hmm... Ho ...Show All
David M. Kean - MSFT how to take numbers from int and put them on table 1 by one
hi.... im trying to figure an easy way, how to take numbers from int and put them on table 1 by one. for example 12345 would go to table as {5,4,3,2,1}. hopefully someone could help me on this :) What have you tried so far Thanks, Ayman Shoukry VC++ Team peteyy wrote: i wasnt able to make that work :( You couldn't make my code work Really Because I tested it before I posted it here. What compiler are you using Did you include these headers #include <iostream> #include <string> #include <algorithm> I think this is what you want: int toint( int val) { return val - '0' ; } int _tmain( int argc, _TCHAR ...Show All
cssjm Can side-by-side COM DLL servers in C++ be signed for runtime trust checking?
I have a COM DLL server written in unmanaged C++. I want to secure it against tampering. My questions are: Does side-by-side COM support signing an unmanaged DLL so that the COM runtime can verify that the DLL is signed with a key that matches a publicKeyToken in the client How can I do this with Visual Studio 2005 Here's what I already know how to do with VS 2005: Use mt.exe to generate a server manifest from a type library Embed manifests in the server DLL and the client EXE, so that the client can activate the server in side-by-side deployment, as described in MSDN's "Registration-Free Activation of COM Components: A Walkthrough" Generate hash codes and a CDF file for a manifest that is not embedded, g ...Show All
