-
- 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
-
- Importing class from DLL
by Ponas
- 2 Replies
- Last post
by Simple Samples
- Using LoadLibrary method is it possible
-
- File compare
by Simrn
- 3 Replies
- Last post
by TilakGopi
- Hi,
I have 2 files, i need to compare the "timestamp" of both using c++, any hints for same !!
-
- Order of Configuration elements in project files
by KurtH
- 2 Replies
- Last post
by KurtH
- Code Snippet The schema for VC++ Project Files (.vcproj) includes Configuration tags within a Configurations tag: <xs:element name="Configurations" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:sequence> <xs:element name="Configuration" minOccurs="1" maxOccurs="unbounded" type="ConfigurationType&quo
-
- Casting from string* to struct*
by Johnny Raved
- 5 Replies
- Last post
by Simple Samples
- Hi,
I'm reading a file into a char buffer over which I want to overlay a structure so I can manipulate the elements within. I'm trying to cast the pointer to the buffer to a structure pointer. How do I properly cast this
My knowledge of grammer is limited to using C a decade ago. Hopefully this is a very simple problem... though one for which I could not find a posted answer. Thanks in advan
-
- Libraries linkage errors make me CRAYZEEE
by spree
- 7 Replies
- Last post
by einaros
- Hey all, I"m frustrated from working with Visual C++ and libraries :/
I am developing my MFC based project, for which I wanted to add a log system to track my bugs and error msg and etc.,
I have created a static library project and created my Log class:
-
- LDR: LdrpWalkImportDescriptor() failed to probe e:\SampleCode\bin\TestD.dll for its manifest, ntstatus 0xc0150002
by Jimmy Lu
- 9 Replies
- Last post
by Nagar
- When I integrate my project, and used another project's output file "TestD.dll", note: the "TestD.dll" was compiled through VS.net 2005 SP1, but the SampleCode was compiled through VS.net 2005, no sp1.
And then I compiled the SampleCode project, it was compiled and linked, I run it, then the error came out.
What should I do, if I could only get one copy of "T
-
- cmpxchg16b
by Lord Zoltan
- 3 Replies
- Last post
by Brian Kramer
- I've another (answered) thread which relates to this (do a search for cmpxchg16b in this forum)... and to many it'll seem like I'm flogging a dead horse, but I think this is important and I'd like to know the answer - I'll bet I'm not the only one.
Why oh why oh why was support for the cmpxchg16b assembly instruction never implemented in VC++ 2005 for 64 bit There's got to be a reason, but I c
-
- Problem with function headers!
by Nami550985
- 9 Replies
- Last post
by Sarath.
- Hi guys,
I am very new to using C++ and am currently using the Visual C++ Express 2005 with SP1 Vista compiler.
Here is the code that I am attemting to compile:
Code Snippet
#include <stdafx.h>
char *pass = "1234" ;
int attempts;
char userpass[80];
int main()
{
//cout << "Please Enter Your Passwor
-
- Exception handling
by Harpreet Singh
- 4 Replies
- Last post
by Ben42
- I have following observations:
1) Using VC++ 2005, write a C++ code that divides a value by zero. Put this code in try catch block. The catch block is unable to catch the exception. On the other hand, if the same code is written in C#, the exception is caught in the catch block.
2) To futher add to it, VC++ 6.0 is able to catch the same exception which VC++ 2005 cannot, although in the catch
-
- out-of-memory linker error
by shostikk
- 0 Replies
- Last post
by shostikk
- Hi,
I'm compiling a console application containing fortran files and one C-file. The compilers are Intel Fortran 9.1 and MS Visual Studio 2005 prof.
The code used to compile well with Visual Studio .NET (version 2003).
Now, with 2005, the source files compile (a ton of warnings from the C-file though), but the linker gives the following error:
Fatal compilation error: Out of memory ask
-
- fscanf won't read past first character
by &#42;Cole&#42;
- 8 Replies
- Last post
by Marius Bancila
- I am trying to read from a file using fscanf and it won't read past the first character. I was wondering if anybody could tell me why Here is the code, I pass the file many times to different parts of the program, perhaps I'm doing this wrong
Code Snippet
#include <stdio.h> #include <cstdlib> #include "Rational.h" using namespace std; //funtions void getConstrai
-
- LNK1181 (Yet another thread). Having serious problem even when creating a new project.
by David J Oldfield
- 7 Replies
- Last post
by David J Oldfield
- Error 1 fatal error LNK1181: cannot open input file " ¡ö/.obj" test
While I did catch a thread that says "Check linker settings", I cannot find such an option (I have never had to worry about such things). I assume that for this to be the origen of the problem then such settings would have to be global In either case, how would they have changed globally without me inte
-
- Setting a Nullable type to null in C++
by gi-m
- 3 Replies
- Last post
by crescens2k
- If I declare, for example, a Nullable Boolean type and assign it to a value, let's say true, how do I set it back to null if I want to . I tried NULL, nullptr, and I searched around the documentation a little bit and didn't find the answer. The best I could come up with that works is the following:
Code Snippet
Nullable<Boolean> nullbool;
Nullable<Boolean> nb =
-
- which one of the following statements is true
by amicalrahul
- 13 Replies
- Last post
by einaros
- Question:-
A CFormView uses a dialog-template resource. What properties must the dialog-template resource have to work correctly with a CFormView
Choice 1
WS_CHILD on WS_BORDER off WS_VISIBLE on WS_CAPTION off
Choice 2
WS_CHILD off WS_BORDER off WS_VISIBLE off WS_CAPTION off
Choice 3
-
- Help button get chm instead of hlp
by Simon Heffer
- 13 Replies
- Last post
by CARTHIC
- I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is a
-
- File System event Watcher?
by Nandakiran
- 1 Replies
- Last post
by Ramkrishna Pawar
- Hi,
is there any way in which i can monitor an entire drive for file system activities. The current "File
System Watcher Activity" (system.io.filesystemwatcher) can be used to monitor a specific folder.
Do i have to recurse into the entire directory structure, and create a watcher for each directory
or is there some better way
and i planning to generate the informatio
-
- CComboBox Assertion failed
by GET&#64;h
- 6 Replies
- Last post
by GET@h
- Hi, I have an MFC dialog application which opens another dialog box containing some combo boxes. I wanted some elements from the comboboxes to be selected by default so I used the member function SetCurSel but it did not work! It generates a Debug Assertion Failed in afxwin2.inl line 769! I went through some posted questions in the forum but that did not help. I tried to move the code I used to se
-
- Using quotation marks in call to "system" function
by Gidi101
- 4 Replies
- Last post
by Gidi101
- I am trying to pass the following string to the "system" function:
"\"nmake\" -f msbuild.mak \"USE_PDB=FALSE\""
the nmake is quoted because it is usually being passed with a path that can include spaces. The USE_PDB is being quoted because otherwise it is not being passed correctly.
I get the following error:
'nmake" -f msbui
-
- How to serialize multiple objects
by Khufu_I
- 9 Replies
- Last post
by Simple Samples
- Is there a way to serialize multiple objects in C++/CLI, such as array<Cars^>^ BMW = gcnew array<Cars^>(number_bmw_models) array<Motorcycles^>^ Honda = gcnew array<Motorcycles^>(number_honda_models) I want to serialize the BMW array of car objects and the Honda array of motorcycle objects into one file, preferably XML. Note that the length of the arrays are variable, de
-
- settimer() inside thread
by Rakesh Simpi
- 1 Replies
- Last post
by Prasad Somwanshi
- hi,
my thread needs to do some processing at regular intervals..
and structure of my thread goes like this:
class myThread : public CWinThread
{
...
public:void starttimer(interval){
settimer(null, //HWND
86, //some event id
100, //interval
(TI
-
- C3867
by Payteq
- 2 Replies
- Last post
by Payteq
- Good Morning,
I am still compiling code previously compiled in VC6 in VC2005 but I am getting the following compile error
error C3867: 'CEFTDataEnrich::Run': function call missing argument list; use '&CEFTDataEnrich::Run' to create a pointer to member d:\payteqprojects\interchange\gatewayswhaggr\eftms\eftserver\source\eftdataenrich.cpp
When I double click it takes me to th
-
- C++ Object
by Moofdaddy
- 3 Replies
- Last post
by einaros
- I'm trying to pass some objects at a very high level and then cast them down to what I need. Does C++ have an "object" equivelent like other languages, i.e. a top level interface that everything inherits from so I can pass a list of generic objects and cast them on the other side
-
- DCOM Project from VC6 won't compile in VC2005
by Paul Keeling
- 2 Replies
- Last post
by Paul Keeling
- Hello,
I have a project from VC6 that builds a DCOM proxy. After I imported it into VC2005 and tried to compile I get an error because TARGET_IS_NT50_OR_LATER isn't defined. I did some reading and it mentioned definined NOROBUST but that didn't help.
If I define _WIN32_WINNT as 0x500 the project compiles but linking fails with
dlldata.obj : error LNK2001: unresolved external s
-
- Linker error
by ajhank2
- 2 Replies
- Last post
by Holger Grund
- This error confuses me something awful.
I apologize if I have posted to the wrong forum, if I have done so, please send me in the right direction.
I am trying to add some file manipulation to an extremely huge and complicated program that I did not write. I'm starting to get frustrated because I cannot find a reason why this doesn't work. Not to mention I have written code like this