Answer Questions
s0r3n Loading Custom Controls or Windows Forms at Runtime
I am working on a new application architecture in VC++ 2005 and I would like to load my own custom controls dynamically. How do I do this I have attempted several different methods but to no avail. More Information: I have a set of custom controls which I built using the "Windows Forms Control Library" project selection. The controls are stored as DLLs. Normally these controls ...Show All
JKelley Displaying float in a dialog box
It's my first question on this forum. I am curently programming a Win API program. You enter decimal values and it gives mathematical values (quadratic and trigonometric programs). So because of that, I need to be able to get the "float value" the user entered, process it, and then, redisplay the answer (which is normally not an integrer). I tried to use different methods like SendDlgItemInt or SendDlgItemText, but all of them wi ...Show All
Wlimit how do i compare each character in a string with something
Hello. Please help me. How would I compare a character in a string with something. For example, I have the following string. "Hello, world!" And then I'd check if each character is == to ",". If it's right, I want to replace "," with "\n". How would I do this Thanks. Hi! C#: string.Replace(",", "\r\n") C++ .NET: I think the ...Show All
VBNISIM Pointers
I've recently started to learn c++ and im finding that it is an interesting language. however i do not understand the reason for pointers i've read an article on pointers and it tells that pointers exist to tell where a variable is held in memory. but i do not understand what the use of that is. were they invented to manipulate the computer's memory or were they just made to have access to it. also i see that a lot of Managed c++ programs use a ...Show All
bala_excel Mixing C & C++: Linker / name-mangling problem
Hello, I am forced to mix C and C++ and ran into trouble compiling and linking the sources under Visual C++ 2005 Express Edition. I have provided a trivial example to illustrate the problem: The header file defines a struct type named MYSTRUCT, cpp-file.cpp declares a global variable of this type and c-file.c declares the same global externally and manipulates it in a function. The linker complains about an unresolved symbol ...Show All
MKU Why does my EXE file fails to run on certain Ms XP and Ms 2000 platforms?
I am using Visual Studio 6 to create my simple dialog-based program. In the setting, I have selected to "use MFC as a static library". After building, I get my Released version of my EXE program. This executiable file does run well on the PC on which I developed the program. However, for the PC without Visual Studio, I found the following problems : 1. The EXE does not run at all on many Win XP or Win 2000 platforms where Visual Studio ha ...Show All
Lockie Simple Simple COM
Hi! I do all my programing stuff in c#.. but i need some plain C or C++ code sometimes.. and i need to interact classes made from C/C++ to C#. As i heared this is done with COM`s Can anyone show the simpliest COM made in C/C++.. that has a Class named Test and a method int Add(inta, int b); that return the sum of them.. Please make it simplie as possible.. coz i`m not really good at C/C++.. COM things.. well.. i was running from managed c ...Show All
fabien7474 msvcrtd.dll not found
Hi!!!!I'm not sure if this is a .NET problem and I'm not even sure that this thread belongs here.But when I try to run a compiled debug config of a C++ program on VS.NET 2003, I get the message: msvcrtd.dll not found I searched the internet and found that is a common problem,but I can't find where to download the .dll file from.Do you know Or at least do you know how to overcome the problem Refer to the ...Show All
stanford float to integer conversion
I'm currently using VC7. My code does _lots_ of float-to-integer conversions of all types: single and double precision to both signed and unsigned, byte, word and doubleword. I'm experimenting with the various compiler directives that might improve performance. /arch: SSE has the benefit of allowing the compiler to use the cvtss2si instruction under some circumstances. However, it still calls one of the _ftol intrinsics (or inl ...Show All
flwid Capturing Screen
Hello, I've been wondering how is it possible to capture the screen in my Visual C++ 2005 Windows Forms application. With Thanks, Gal Beniamini. As you are writing a managed (/CLR) app, you need to add user32.lib to your linker settings under properties: Configuration properties - Linker - Input - Additi ...Show All
Rameshks23 warning C4013
Hello, I'm using Visual C++ 2003 Standard for ansi C coding. I keep getting warning like this with common functions: warning C4013: 'malloc' undefined; assuming extern returning int warning C4013: '_getch' undefined; assuming extern returning int warning C4013: 'strcpy' undefined; assuming extern returning int warning C4013: 'free' undefined; assuming extern returning int How to solve it Thank you in advance. #include <stdlib.h&g ...Show All
MichaelH1981 aspell compilation problems
Hi, I tried to post on the forum but it kept coming up with an internal error so i was wondering if you could help me with the following:I have recently been trying to compile aspell (a spell checker written in c and c++) in visual studio .NET (2003) which has taken forever but i managed to get it to compile a dll now. When i come to add this dll file into another project which will be using the methods from this dll it keeps giving ...Show All
Nazish Ahsan Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
Sadhvi why? link error...
this is the code: #include "stdafx.h" #include "wininet.h" wchar_t *lpszAgent; wchar_t *server = L"aaaa.t35.com"; wchar_t *username = L"aaaaaaaa.t35.com"; wchar_t *password = L"gaaaaa"; wchar_t upFileName[] = L"test.txt"; wchar_t dir[] = L"test"; HINTERNET hInternet; HINTERNET ftp; void upload(void); int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { upload(); return 1; } void upload() { hI ...Show All
k123 Printed text is overlapping!
In document Image Writer, text looks just OK, and ofcourse it is as I was tuning it according to image writer. But when I print that same stuff on the paper, text is overlapping!! I am using pInfo->m_rectDraw.Width() and Height() to retreive width and height in points. In Image Writer exactly 5 paragraphs fits the paper and on regular printer letters are about 5 times larger and only about 2 paragraphs can be printed on 1 paper. Also, in Prin ...Show All
