-
- Structure filling, adding of 00 00
by _Chrissy_
- 1 Replies
- Last post
by Bruno van Dooren
- Hi all, I' have a problem filling a structure, it seems to add 00 00 somewhere in the structure, and as I am working on TCP / IP headers, it messes it all up. This is first version of structure, 00 00 is added in between the short protocol and IP_header structure. This all works in hexadecimal.
Code Snippet
typedef struct { long pack_length; short mac_srce1; short mac_srce2;
-
- Running a C program
by WrenS
- 4 Replies
- Last post
by einaros
- I am a newbie that has just installed Visual C++ 2005 Express on one computer, but I also just installed Visual Studio 2005 on another computer. I need to know 2 things, which I can't distill from the online help:
1. How can I run a C program (not C++), which I understand from a textbook is possible. I would like the *simplest* possible interface to editting the C source, compiling it, and
-
- Error C2065 in vc6
by tasleemarif
- 2 Replies
- Last post
by Damien Watkins - MSFT
- hi i m using this code i on windows XP and visual studio 6,i receive error mentioned above i had include these two lines as well,in stdaxh.h #define _WIN32_WINNT 0x0500 #include <windows.h> the code is below MENUITEMINFO mii; memset(&mii, 0, sizeof(MENUITEMINFO)); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID| MIIM_BITMAP |MIIM_DAMFT_BITMAPTA; error is describled as below D:\
-
- HELP. Convert TCHAR array to std::string
by peter.Yan
- 4 Replies
- Last post
by peter.Yan
- Hi all, the following is a fragment of my program. The problem is how to convert the TCHAR array to std: tring. There is one error, convert from 'TCHAR [1024]' to 'std: tring'. std: tring matLabFilename TCHAR currentDirectory[1024]; GetCurrentDirectory(1024, currentDirectory); matLabFilename = std: tring(currentDirectory) +'\\' + matLabFilename; Any suggestion or advice are appreciated. Than
-
- Copying an object from a vector while using an iterator?
by PeteJM01
- 4 Replies
- Last post
by PeteJM01
- Below I have the code that is giving me a problem, when I try and copy using item = i; I get errors, and I have tried to use * and &, but I can't work out the correct way to get this to work.
Code Snippet
std::vector<TECHITEM*>::iterator i;
for (i = TECHORDER.begin(); i != TECHORDER.end(); i++)
{
item = i;
}
Im sure lots of people on this site know
-
- how to debug code in vc6 when the code is built in vc7
by Anonymous564864
- 2 Replies
- Last post
by Anonymous
- Hello,
I have a dll built in VC7, the main program runs in VC6, calls the dll functions, it can not step into the functions, is there a way to do that
the dll project is made by the visual studio .net through "new->project->visual c++ projects->MFC DLL".
the main program is a tipical MDI application made by VC6.
It seems if using static library (not dll)
-
- Problem with deployment (VC++ 2005)
by Kumar Venkat
- 5 Replies
- Last post
by Kumar Venkat
- I have run into a strange problem with deploying applications developed using the VC++ 2005 Express Edition. After building "release" versions on my development machine, I usually copy the release binary over to a laptop and run it there (the laptop has .NET 2.0 and VC++ 2005 Redistributable packages installed, but not the development environment). Both computers are running Windows XP P
-
- How to convert vc6 project to vc8 (Visual Studio 2005) - So that It get build without errors
by Sandeep_Pandey
- 3 Replies
- Last post
by Simple Samples
- Dear Friends,
I have a large VC6 project. Now I want to convert it to VC8 (Visual Studio 2005). But after converting it to VC8 (auto conversion by Visual Studio 2005), I'm getting a large no of errors while building it. Can you please help me to sort out the errors or if you know some help document about conversion issues then please let me know.
Errors are like:-
Linking...
-
- Regarding File searching APIs
by CoolJammy
- 8 Replies
- Last post
by Andreas Masur
- Hi,
We have a set of APIs for Registry Search APIs available in MSDN.( http://www.windowsitlibrary.com/Content/595/1.html)
Can any one help me in getting all the APIs which help the developers to implement File searching operations in MSDN.
I would be very thankful to you if you can help me in this regard.
Regards,
Ravi Kumar.
-
- Downgrading project to Visual Studio 2003 from 2005
by Whitehorseq
- 2 Replies
- Last post
by Whitehorseq
- I have a project developed using Visual Studio 2003 & MFC. It is working. Recently it was upgraded to Visual Studio 2005 and original source was lost. After I build the solution, I am unable to run it is throwing assert error.
Now I want to open this project file in Visual Studio 2003. Since the original Project file is converted to Visual Studio 2005, I am unable to open it. Is their a
-
- std::vector - very quick question
by Dalai
- 5 Replies
- Last post
by Dalai
- In the class below I want to pass a std::vector to one of its member functions that will add new items and manipulate them in some way ...
Code Block
class CMyClass1 { public: std::vector<CMyClass2*> object1; std::vector<CMyClass2*> object2; void addNew(void); void createNew(std::vector<CMyClass2*> object); }
CMyClass1::addNew(void){ pivCreateNew(object1); piv
-
- DoModel Fails in Polish Version
by Mark_VC
- 2 Replies
- Last post
by Simple Samples
- This particular dialog which in my case is open help fails to show up in polish version of the program. The same dialog works fine in english version. Here is the code
1. CMyDialog dlg(NULL);
dlg.DoModel();
where exactly the functionns fails in inside the DoModel function in this particular function call
2. CreateDlgIndirect(lpDialogTemplate,CWnd::FromHandle(hWndParent
-
- c++ interop & compile time dependency
by bugsy0
- 2 Replies
- Last post
by bugsy0
- I'm using managed extensions for c++ to call methods on an object written in c# and packaged in a dll. Everything works great except that if I change the code in my c# dll, I have to relink my c++ project to get it to use the new dll. The main reason for my splitting this code into a c# dll is to be able to upgrade and ship the dll without having to ship a new c++ exe, but this doesn't work, since
-
- VC++ 2005 Pro. Correct way to set up c++ directories.
by MrsTickle
- 4 Replies
- Last post
by MrsTickle
- I'm having problems with linker errors in my code. code someone please confirm the correct order for within "C++ directories" for
exexcutable files
include files
reference files
library files
source files
exclude directories.
this seems elementary stuff but i can't find it anywhere. there is some information for vc++ express but as this lacks a lot of functio
-
- How to get scanned node info from other than stat() function
by Ashok Jain
- 4 Replies
- Last post
by einaros
- In stat() we pass following arguments to get the scanned node info.
stat((char*)filename, &sbuf)
I just need to know whether the scanned node is a file or directory.
In stat() its done by using <<sbuf.st_mode>>
stat() takes some time as it gets complete information about a file. But i dont need complete info about a file.
Just whether the scanned node is a file o
-
- Binary file reader
by Davidov
- 6 Replies
- Last post
by Chuck the Code Monkey
- Im having trouble working out the syntax errors within my code theres about 23 at my last count so any help would be appreciated. // Function dataread // A function to read in the low-level data and assign it to an array // // Inputs: pointer to a data file; pointer to a data arry in main() // Outputs: return status in file #include "DataRead.h" FileReader::FileReader(string file
-
- Can dialog resource of vc6 be used in vc 2005?
by hailing
- 3 Replies
- Last post
by Bite Qiu - MSFT
- I need create new project with Visual c++ 2005 for my Visual c++ 6.0 application. There are many dialog resource, I must recreate these dialogs and config the elements of the dialog. Is there any method with that I will be free from the repetitious work
-
- Is it possible to use OCR in Vc++ OR Vc++.NET project?
by Surezsu
- 3 Replies
- Last post
by Surezsu
- Hi All, I was successfully done OCR in c# .NET using MODI.But is it possible in Vc++ OR Vc++.NET . If anybody have an articles or sample source code about that one, please let me know..... Thankx in Advance.... Surezu
-
- array -- foo, &foo and &foo[0]
by George2
- 4 Replies
- Last post
by George2
- Hello everyone,
I think if we define foo as char array, for example,
char foo [32];
then foo, &foo and &foo[0] should be the same, right
For example, the following 3 statements are the same,
strcpy (foo, goo); strcpy (&foo, goo); strcpy (&foo[0], goo);
Any comments
I am very interested in how C treats foo and &foo and make them the same
thanks in advanc
-
- Calling a method of a yet to be determined class.
by NeederOfVBHelp
- 5 Replies
- Last post
by Bojangles
- I have a template class that virtually inherits from the type that is specified. With in that template class there is a concrete instance of the specified type. Basically I want for the consumer of my template class to be able to call a method of the specified type from the template class which would then in turn call the same method in the concrete instance of that type. Let me try to clarify: cl
-
- Please read. Thank you
by TBoneBiggie
- 3 Replies
- Last post
by Simple Samples
- Hi, I am trying to compile an Win32 project but I keep getting linking errors. I tryed to fix and search forums and google but really nothing helped, if anybody could help id be really greatful. Anyway here is the error report. I am using Microsoft Visual Studio 2003 .net Pro. All my libs and includes are located right. Header for main.cpp #include <windows.h> #include <stdio.h> #inclu
-
- List Box initialization
by rosicky1234
- 3 Replies
- Last post
by Simple Samples
- I am making an application with a List Box. However, how to initialize some strings into the List Box. So that I can see the strings once one clicked into the page with this List Box.
-
- use c++ to separate MPG 4 file audio and vidio
by roger5089
- 3 Replies
- Last post
by Ben Anderson MSFT
- Dear all one of question hope some one give me some suggestion for this project , i need to know the concept of MPG 4 format. if i want to us c++ to write code to separate one MPG4 file by audio one file and vidio one file. how can i start research it , does any API i can found out in msdn or any idea i can start.
-
- VS .Net 2005, how to disable intellisense...
by ChandraP
- 14 Replies
- Last post
by Boris Jabes
- Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra
-
- Pointer Arithmetic Gone Awry
by Johnny Raved
- 2 Replies
- Last post
by JohnnyRaved
- I suspect I'm missing the obvious here, but I'm having trouble calculating the address of a variable length of characters that follow a structure (pkt_file_desc). When I do the math by hand, I get the result I expect. The debugger does not agree. Far be it for me to disagree with a debugger. Any help would be appreciated. Thanks, Johnny.
struct pkt_hdr { char magic ; __int64 length;