-
- how to include txt or bmp or another type of file in the executable file? visual 2005 c++
by Aljkljl
- 9 Replies
- Last post
by Aljkljl
- I have the files in the resources files directory, when i make the executable file don¡¯t get any error. when i run it i get an unhandled exception in the aplication, i think is about the path of the file. anyaway i want to include the files in the excecutable file. thanks
-
- Md5 code changes from VS 2003 to VS 2005
by glcjr
- 5 Replies
- Last post
by glcjr
- A year or so ago I converted the c# code found at http://msdn2.microsoft.com/en-us/library/system.security.cryptography.md5.aspx into c++ code for Visual Studio 2003. But in Visual Studio 2005, it no longer works.
Here's the code that works in 2003.
static String* getMd5Hash(String *input) { // Create a new instance of the MD5CryptoServiceProvider object. MD5 *md5Hasher = MD5::Crea
-
- Function name conflict with ENUM name
by opera100
- 10 Replies
- Last post
by Brian Kramer
- Suppose I have a ENUM T_MuxPos_type, where T_MuxPos_type{fixed;flexible;}. While I am coding, I have T_MuxPos_type Mux_pos. When Mux_pos = fixed, I have no problem with gcc but a compilation error with mvs2005:
c:\mvs2005\bs_module\source\config.cpp(1925) : error C2872: 'fixed' : ambiguous symbol could be 'c:\panliu_bs\mvs2005\bs_module\source\declareenum.hpp(43) : T_MuxPos_type_E fixed'
-
- XML Extracting Attributes (Simple Question)
by calmal20
- 7 Replies
- Last post
by robben07160
- Hi,
I have a simple question regarding XML.
If I have an XML file in a similar format as seen below, want I want to do is find ¡®Product_Number = 1¡¯ get the COLOUR and PRICE but what would be the best way to do this (C++ .NET) and would code loook like
< xml version="1.0" encoding="utf-8" >
<PRODUCTS>
<PRODUCT>
&
-
- LNK 2019, inline functions
by jsad923f
- 7 Replies
- Last post
by Mike Danes
- I made a class in the header file class Foo { public: float area(float x, floaty); }; in the .cpp I tried #include "Foo.h" inline float Foo::area(float x, floaty) { //lot's and lot's and lot's of stuff . . return variable; } and I get... error LNK2019: unresolved external symbol "public: float __thiscall Foo::area(float x, floaty)" If I take away the inline everythin
-
- template property and LNK1120: unresolved external - bug or coding error???
by IB00
- 3 Replies
- Last post
by Aleksey Nagoga.
- I have encountered a link error generated for a template based class and am asking for assistance in resolving it.
The code below defines a template based class Interval<TYPE>'. Compiling/linking this code generates the following error message: testCLR.obj : error LNK2020: unresolved token (06000002) Interval<double>::get_Difference C:\Documents and Settings\XXXXX\My Documents\tem
-
- PDA Serial Number
by WayneForget
- 2 Replies
- Last post
by Damien Watkins - MSFT
- I'm coding in eVC++3 and want to retrieve the PDA serial number using the RegQueryValueEx function.
Is it possible Some code please.
-
- Trouble with Speech SDK 5.1 and Visual Studio 2005
by Flopik
- 14 Replies
- Last post
by Imad Mohammed
- Hi I updated my version of Vs 2003 to Vs 2005 Pro . My project was sucessfully compilated and linked in 2003 , but i seem to have trouble with SpHelper.h. ( Speech API) Error 18 error C2065: 'psz' : undeclared identifier F:\Program Files\Microsoft Speech SDK 5.1\Include\sphelper.h 2373 Error 38 error C2065: 'psz' : undeclared identifier F:\Program Files\Mi
-
- How to watch a static variable of method in debugger?
by Quentin227043
- 10 Replies
- Last post
by SLabuta
- I noticed today that I am unable to view the value of a static variable declared in a method in the VC++ 2005 debugger. I cannot view the variable both in the watch window and in the mouse over tooltip. Also in my project, this seems to affect other non static variable declared in a scope block in the same method. (stupid) Example: int addsub10(bool add, int val) { static int callcount = false;
-
- install sp1,then IDE error
by losepig
- 4 Replies
- Last post
by k j
- hello ,everybody,when i installed sp1 later, i rebuild my project ,and the following error appear:
--------------------------------------------------------
runtime error!
program:..\common7\IDE\devenv.exe
this apllication has requested the runtime to terminate it in an unusual way.please contact the application's support team for more informion.
-------------------------------------
-
- Does VS2005 include Windows Installer?
by VoiceOfExperience
- 12 Replies
- Last post
by VoiceOfExperience
- Does VS2005 include Windows Installer If so, how do I run it to create an installation package for users to install or upgrade my products
-
- Thread exception with folderBrowserDialog
by Girkers
- 5 Replies
- Last post
by Gang Wu
- I am trying to use a FolderBrowserDialog to get a folder and set the path to a text field on my form. The first problem I came up against was a blank folder listing which I had to rectify by making the FolderBrowserDialog spawn as a STA ApartmentState. Now the problem is that I can't get the SelectedPath back onto my calling form. Here is my code for my Click event to open the FolderBrowserDialog
-
- Deployment and DLLs
by J. A. Love
- 11 Replies
- Last post
by Simple Samples
- I want to distribute my program using a Setup.exe installation. I've ran my app through depends.exe and there's countless DLLs that it depends on. How do I determine which ones to distribute with my app
I know there's a few that should be on the target machine already (kernel32.dll, user32.dll, etc.) but what about the other 22million DLLs that Dependency Walker is telling me I need, do I r
-
- hi
by GPU
- 1 Replies
- Last post
by Brian Kramer
-
- How to see the output of the pre-compiler
by ThoWa
- 1 Replies
- Last post
by crescens2k
- Hi all,
I have used LabWindows/CVI quite much.
Although it is a terrible compiler, it has one pretty good option.
You can view the output generated by the precompiler.
Meaning, all include files are inserted and precompiler defines are taken into account.
How can I see this kind of output from VS 2005
Best Regards, ThoWa
-
- Lost in namespace .... C++ .net ..... using namespace System::Drawing ...... #using <System.Drawing.DLL>
by software_writer_nyc
- 5 Replies
- Last post
by n0n4m3
- C++ /clr .net
How does one successfully employ the
#using and using
to allows for shortened names in C++ software
employing .net namespaces
Feel free to improve my question.
for example ............
#using <System.Drawing.DLL>
using namespace System: rawing;
I see the examples using short names successfully
... but somehow the ide generated softw
-
- ReadDirectoryChangesW does not provide the renamed filename when renaming a newly added file
by Josephine
- 1 Replies
- Last post
by Marius Bancila
- Regular renaming works fine:
1. An existing file 3.txt exists at the c:\scripts directory
2. Renaming 3.txt to 4.txt, the following code works fine.
Renaming a newly added file does not work:
1. Add 5.txt to the c:\scripts directory
2. Rename 5.txt to 6.txt
Noticed 6.txt is not printed. The new filename is blank. Is there something wrong with the buffer access at the FILE_ACT
-
- invalid or corrupt file: duplicate COMDAT error encountered while migrating to Visual Studio 2005
by Angshuman Chatterjee
- 2 Replies
- Last post
by Angshuman Chatterjee
- I have a solution comprising of some 20+ projects, which I am trying to migrate to VS2005 (I was using VS2002). One of the projects is throwing up this linking error:
fatal error LNK1179: invalid or corrupt file: duplicate COMDAT <mangled form of the function CXYCollection::get_Count>
(Basically the mangled name of the function just after QueryInterface)
The project makes a heavy us
-
- createprocess
by dellthinker
- 8 Replies
- Last post
by Ben Anderson MSFT
- Hi all, I've been struggling with the WinAPI CreateProcess for some time now. I've googled/yahoo'ed all over to find a simple explanation on how to use it and i havnt found anything close to how to use it properly. I know it takes 10 parameters in order to use so says MSDN . But im still not finding a way to use it for something simply. Any help and or suggestions on the matter is greatly apprecia
-
- mystery.c how does this work
by Marius F
- 3 Replies
- Last post
by Sdi
- hey how can explain me how is this freaky program working
this is alien stuff
Code Snippet
#include <stdio.h>
main(t,_,a)
char *a;
{ return !0<t t<3 main(-79,-13,a+main(-87,1-_,
main(-86, 0, a+1 )+a)):1,t<_ main(t+1, _, a ):3,main ( -94, -27+t, a
)&&t == 2 _<13 main ( 2, _+1, "%s %d %d\n" ):9:16:t<0 t<-72 ma
-
- Linker Error
by NehaRahul
- 4 Replies
- Last post
by NehaRahul
- Hi,
I have taken the Microsofts SDKs ColorTranslationSample from Vista PC from the Path c:\Program Files\Microsoft SDKs\Windows\v6.0\ samples\Multimedia\gdi\WCS\ into seperate folder. I followed the building procedure for this sample as given in the following link http://msdn2.microsoft.com/en-us/library/ms716692.aspx where it is given as building the sample from command prompt using vcbuild c
-
- Converting System::String to LPCWSTR
by Katana314
- 3 Replies
- Last post
by Alex Farber
- I've been looking for a long time as to how to solve this, and eventually just thought I'd ask. I've been told of A2W, which apparently cannot convert from System::String (so says the compiler error), I've tried converting to a wchar_t first, but the method won't accept it, and I'm running out of luck. Here's what my code looks like now. pin_ptr<const wchar_t> wch = PtrToStringC
-
- Loop misalignment
by Dave Heinemann
- 10 Replies
- Last post
by Dave Heinemann
- I recently found out (the hard way) that loops can run at about half speed when they aren't aligned (the jump-to location isn't divisible by the lucky number.)
Is there anything that can be done about this besides trial-and-error padding I use a lot of time-critical loops (digital signal processing), and resetting the alignment by hand every time I edit something can be a pain, especially
-
- Visual Studio 2005 - C++ - Using structures and vectors together.
by Earla12
- 8 Replies
- Last post
by Earla12
- Hi,
I'm working on an inventory management program in which I'm trying to utilize 'structures' and vectors (instead of arrays).
Here is one of my structs:
struct vendorStruct
{
string vendorType;
string vendorID;
string company;
string contact;
string streetName;
string streetNumber;
string city;
string state;
string zip;
string phone;
st
-
- cannot find dll
by brybot
- 12 Replies
- Last post
by Bite Qiu - MSFT
- I have a program written in C# and a DLL written in C++. The program works fine on my computer if I place the DLL in the same folder as the executable. I can even change the location of both files and it still works fine on my computer. As soon as I put it on another computer, I get an error saying it cannot locate the DLL. I have tried adding it as a resource which doesnt work, tried putting it i