-
- Multithreaded file download with sockets
by ofsarac
- 4 Replies
- Last post
by scor7910
- Hello
I am developing an application which uses sockets. the program is simply a file transfer program. there is a server which is able to send and receive files. also there are clients.
the client, however, is able to download files sequentially or parallel. this means client arranges a downloading option with checkbox, for example. if it is set to sequential, selected files to be d
-
- Visual Studio compatibility with GNU GCC
by R4d1um
- 3 Replies
- Last post
by Jonathan Caves - MSFT
- I want to know if there is a way to maintain compatibility with the GNU C++ Compiler
using Visual Studio.
Which "features" may i use , which one i mustn't use to archieve compatibility
Maybe someone knows a webpage which information concerning my question.
Regards
A.Gallus
-
- How to know the Number of Bytes allocated to a Pointer.
by Mahesh B. Mane
- 3 Replies
- Last post
by Mahesh B. Mane
- Hi Friends.....
Is there any function to know the number of bytes allocated to a pointer.
Ex:
foo()
{
int *intList = NULL;
intLIst = (int *)malloc(sizeof(int) * 10);
freeList(intList);
}
freeList(int *intList)
{
/*How to collect the total number of bytes allocated for intList*/
free(intList);
}
Thanks....
-
- Memory mapped file size limit
by Shashi Subbarao
- 7 Replies
- Last post
by Brian Kramer
- I have a program that creates memory mapped files (shared memory) and are not mapped to a file directly. When I try to allocate a bunch of memory mapped files, it works fine with 128MB and 256MB chunks but fails with 512MB and 1GB chunks. CreateFileMapping succeeds but MapViewofFile fails with GetLastError 8 (ERROR_NOT_ENOUGH_MEMORY). This is on a Windows 2003 server 32-bit edition SP1 with 4GB ra
-
- executing a program
by fighter92
- 6 Replies
- Last post
by Bite Qiu - MSFT
- How can I execute a program with Visual C++
-
- About ToolTips
by Hi,
- 0 Replies
- Last post
by Hi,
- Hi,
In my Doc/View application View is derived from CFormView. And my dialog heirarchy is like this:
There are several dialogs x1,x2 ..etc which is child of parent "y" and y contains buttons which acts as tabs.
"y" is a child of dialog "z" which has another child dialog y1
z is child of main view or main window.
In X1,X2... etc many controls are
-
- error C2679: binary '=' : no operator found which takes a right-hand operand of type 'RX::FastSet<BASE>::sortedAppender' (or
by Man-Nag
- 5 Replies
- Last post
by Holger Grund
- The problem occurs in Visual Studio 2005 but works in Vc++6.0
rx_fastset.h
struct SortedAppender
{
typedef Std:: output_iterator_tag iterator_category;
typedef BASE value_type;
typedef ptrdiff_t difference_type;
typedef BASE* pointer;
typedef BASE& reference;
sortedAppender(FastSet& fastSet): m_fastSet(fastSet) {}
sortedAppender& operator
-
- MFC Newbie Help Needed!
by Mateusz Rajca
- 9 Replies
- Last post
by Simple Samples
- Hi! I'm new to MFC. I am trying to subscribe to some of the events of a CFileDialog. How can I do this http://msdn2.microsoft.com/en-us/library/8dwz4azc(VS.80).aspx (I want to subscribe to the "Overrideables")
~Matt
-
- What factors go into link and start-up time?
by HeroOfSpielburg
- 2 Replies
- Last post
by Simple Samples
- Hello, This is more of a theory question, than a complaint. Recently my project has been growing more and more complex due to an infusion of new technolgies, and along the line two considerable growing pains have been ballooning: link and application start-up times. I suppose this is inevitable, but it bothers me that I don't know exactly why these phenomena are occuring. If anyone can provide som
-
- SP1 redistibutables can't run as private assemblies
by Brendan77655
- 3 Replies
- Last post
by Brendan
- Hi there,
We have an application that uses VC++ 2005. For the runtime libraries we distribute them as private assemblies (which is to say we include the manifest and the msvc*.dll files in our application directory). This worked fine with the RTM.
When we installed SP1, we updated the manifest and dll files to the SP1 versions but we have found that the application will not load on any machi
-
- Process dynamically loads dll, gives it a file handle but results in a crash when file handle is accessed in dll
by scratchdog
- 5 Replies
- Last post
by Simple Samples
- Process dynamically loads dll, gives it a file handle but results in a crash when file handle is accessed in dll. File handle is created in the process. It dynamically loads DLL. Passes file handle to DLL. DLL code tries to access. Crash, access violation. Is this a security issue Thanks in advance.
-
- C1083 error on linking a VERY large project
by bobpitbull
- 13 Replies
- Last post
by crescens2k
- When I turn on "Whole Program Optimization" on our project, I eventually hit a C1083 error during linking.. the file it's attempting to load is fine - it loads fine if I turn WPO off. So.. it looks like the Linker is running out of workspace.
Our project is VERY large... so that's entirely possible.
My question: How can I help the linker Is there a way to increase the space
-
- How to sign a manifest for an unmanaged C++ program?
by ACAN2007
- 2 Replies
- Last post
by ACAN2007
- Hello all,
I have an application written in unmanaged C++, using MFC and unmanaged DirectX (8.1).
I would like to deploy this application using ClickOnce technology. I am using Microsoft MageUI tool to create an application manifest and a deployment manifest. I have a manifest for my program, but each time I am trying to fetch it to MageUI I am getting an error "The application manifest
-
- cin();
by datpin
- 5 Replies
- Last post
by datpin
- i am beginer of c++ so i have some thing
int a;
cout<<"hello::";
cin>>a;
cout>>a;
when run
output
hello:
0
why d=0
-
- c++ cgi
by justinbezanson
- 3 Replies
- Last post
by Simple Samples
- I have been playing with some C++ CGI lately and was wondering a couple things. 1.) What is the best way to maintain a CGI project Meaning, so far for every new application (every webform/page) I have to setup a new VS project. Surely there must be a better way. Can I setup VS to compile each .cpp into a seperate .exe 2.) Is Url Rewriting the only way to get the CGI application to execute without
-
- create .exe file?
by yj2000
- 5 Replies
- Last post
by yj2000
- Hi, I want to ask how to create an exe file using Visual Studio. I created a project, after building and compiling, there is no .exe under debug folder like usually it would produce. Instead there is a 'xxx.exe.intermediate.manifest' file. It seems to be some configuration settings. Could anyone help me Thanks a lot! (I am using VS 2005 SP1)
-
- New to VC++ Programming
by Adarshdeep Singh
- 6 Replies
- Last post
by einaros
- hi all!...
i am a software engineer, i always worked on VB & m quite good in that. in that i have mostly made database applications. but now i want to switch to different type of projects like, the projects which can communicate with the system & hardware. please let me know what VC++ can do which other languages cant do. i heard that its the language which can do anything but what
-
- show line number
by mario7102
- 3 Replies
- Last post
by mario7102
- I have a little question...
'cause I'm working on up 2000 code's line project, I'd like to see a number for each code line, as in matlab editor
Is it possible in visual c++ 6.0
thanks
Mario
-
- C3861: '_beginthread()': identifier not found when using /MD (Multithreaded DLL)
by DJHBeek
- 7 Replies
- Last post
by Simple Samples
- I have a DLL that compiles fine in the Debug configuration (with /MDd defined), but gives '_beginthread()': identifier not found then compiling in the Release configuration. process.h is included and I checked the config for the Release mode and the multithreaded libraries are being used. Could someone point me at what to check next
-
- Help please!
by Hellish
- 14 Replies
- Last post
by Hellish
- hello,
when i try to compile (build) a project it gives me this error:
Instance_ShadowfangKeep.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl HandleShutdown(class Socket *,unsigned long)" ( __imp_ HandleShutdown@@YAXPAVSocket@@K@Z )
it gives me 32 errors so a other error is like:
Instance_moltencore.obj : error LNK2001: unr
-
- Need help - Liner errors: MyEncoderDlg.obj : error LNK2001: unresolved external symbol _IID_IHXTEncodingJob
by VVSKumar
- 1 Replies
- Last post
by einaros
- Hi All, I'm kind of newbie for VC++. I'm trying some open source encoding server which i got it from Helix Community. I had some sample applications along with the SDK. I don't know if it is compatible with VC8 mostly the documentation suggests VC6. But still tried to build the application by creating new projects in VC8. I got these linker errors: 1>MyEncoderDlg.obj : error LNK2001: unresolved
-
- Small Linker Problem
by chris_14
- 14 Replies
- Last post
by TilakGopi
- Hi folks, Would you please be so kind to have a quick look at my code I'm trying to compile code for the WinCE platform using Visual C++ 6, but I always get a linker error. The Windows CE SDK has been installed, as project I've selected a simple WinCE Application in Visual C++. This is the source code, found at http://www.codeguru.com/cpp/w-p/ce/embeddedvisualc/print.php/c9799__1/ #include <m
-
- error C2228, need help!!
by Pranav Bahl
- 2 Replies
- Last post
by Pranav Bahl
- I WAS TRYING TO COMPILE THIS CODE BUT I ALWAYS GET THE FOLLOWING C2228 ERROR:
: error C2228: left of '.displayMessage' must have class/struct/union
: error C2228: left of '.setBalance' must have class/struct/union
: error C2228: left of '.getBalance' must have class/struct/union
Could someone please help me with this. Thank You
Code Block
#include <iostream>
-
- Doubly Linked Lists
by PeteJM01
- 6 Replies
- Last post
by Simple Samples
- I have been looking all over the web for a good example of Doubly Linked Lists, so that I can use one for a program I am working on at the moment.
I would have used a vector, but because I am building a windows forms app the compiler doesnt like me trying to mix STL stuff into my app.
Does anyone know of any really good tutorials or examples, that include functions for adding nodes to front,
-
- VS 2005 C++ Text Control Settings
by slender_bamboo
- 4 Replies
- Last post
by Simple Samples
- I have a dialog with a text control.
It is basically working, but I want to make to changes to it, and I don't see these options as part of the standard properties:
- Support for Text Wrap.
I have a Horizontal Scrollbar, but I'd prefer not to have that and just wrap text.
When I turn the scrollbar off, it doesn't wrap.
- Support for Ctrl-A Select All
Select All is avai