-
- Limit the number of lines in a multiline textbox
by Helderferreira
- 9 Replies
- Last post
by Helderferreira
- Hello!
There is an easy way to limit the number of lines in a texbox, whithout having to catch the keypress event of the textbox and limit the number of 'enter' keys
I found a post that, the solution is dealing with the EM_GETLINECOUNT message.
How i can use this message in a VC++ windows form project
thanks!
-
- error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]'
by Rajith
- 14 Replies
- Last post
by HEBU
- When I try to compile the programe in VC7, I got some errors mensioned below, how to resolve them, suggest me.
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(34) : error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new.h(100): could be 'void *operator
-
- stdin can not be closed!
by houwenqiang
- 3 Replies
- Last post
by Viorel.
- I start one thread(thread1) to read from the stdin that use the function fread.because have not input ,so the thread1 is wait for the input . at this time ,I start the another thread(thread2) to close the stdin,but I can not close the stdin. what reason cause I can not close the stdin
-
- Question about namedpipe
by zhjie374
- 4 Replies
- Last post
by zhjie374
- Hi
First of all, I could not find a right fourm to ask question about pipe.
So I ask it here.
My question is:
I have 2 processes.
A NT Service
B User application
I createnamedpipe in A, and B is a pipe client.
But When I use pipe in B with CreateFile, I got the error
with the code=5, (access deny)
After it I use anthor process C.
C is created from A
-
- function malloc()
by jazzmy
- 2 Replies
- Last post
by Mahesh B. Mane
- Hello everybody
int* p;
p=(int *)(malloc (10 * sizeof (int) ) );
the above statements tells the c compiler that we wnat to store 10 integer values. it is just like that
int a[10];
Means the last value that can go in p[9] if indexing is starting from p[0], just like a[0] to a[9]
But in p we are able to store value at location p[10] and even in p[100] WHY
For example
int *p,
-
- Is it possible to have the .dll outside the system32?
by has981
- 14 Replies
- Last post
by has981
- See, I have this car physics simulation that uses SDL. I've placed all the lib and dll files in a sub directory and I'd like to have so that anyone can just double click the exe file and play around with it without having to copy any .dll's to the system32 directory or anywhere. Now in the project properties > Linker > Input > Additional Dependencies I'm specifying SDL.lib (along side ot
-
- PRJ0050
by Venu_nair
- 10 Replies
- Last post
by Henry Gusakovsky
- Hello,
I am building a DLL with ATL8.0 in VS2005. I am getting this error when I build the DLL.
error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry.
Very next time I build, it goes away and the comes back next time. Sometimes i can build 4 - 5 times without error and then it comes back. Any help will be appreciated.
-
- How to limit size of dialog when using scrollbar?
by Taetae
- 2 Replies
- Last post
by Taetae
- Now I'm MFC making dialog and using scrollbar so I can resize dialog.
But I don't want to make it bigger than original.
How can I limit the maximum size of it
Can someone please help me
-
- win32 variable types and uses
by sgarc22
- 2 Replies
- Last post
by Pintu Shukla
- Hello, I am new to writing win32 applications and i wanted to know if there is any real difference between WCHAR and wchar_t. While i was writing my code i noticed that all win32 functions work with either TCHAR's or WCHAR's. In my program i only use wchar_t. Is this the proper way of coding a win32 app Does it matter if i use WCHAR or wchar_t And if it does matter why I appreciate any feedback
-
- Unresolved External Symbol
by hansnah
- 4 Replies
- Last post
by hansnah
- hi, I'm really new to C programming and I'm getting these unresolved external symbol errors when trying to compile my project: Error 5 error LNK2019: unresolved external symbol "void __cdecl encryption_procedure_func(char,char,char)" ( encryption_procedure_func@@YAXDDD@Z) referenced in function "int __cdecl menu_func(char,int)" ( menu_func@@YAHDH@Z) Encrypt.obj Error 6 err
-
- Can we use IInputObject interface in Visual C++ 2005?
by JackZhangca
- 2 Replies
- Last post
by JackZhangca
- I have "shobjidl.h" included, but "Error 1 error C2787: 'IInputObject' : no GUID has been associated with this object" always comes out while compliling. What else do I need to do to use IInputObject interface in my application
-
- Exit Instance/Destructor not called
by Jonathh256419
- 5 Replies
- Last post
by Jozsef Bekes
- Hello, I am now thoroughly investigating a problem i ran into a few months ago. Basically we noticed that our ExitInstance derived function ISNT called in _DEBUG mode. I traced it back and also noted that the ~destructor isn't called for our CWinApp derived function either, and am currently assuming it is something in that the destructor calls ExitInstance, and as the ~desctructor isn't called Exi
-
- Print preview problem?
by jagdeesh_karicherla_6f4461
- 1 Replies
- Last post
by Bite Qiu - MSFT
- I had a litle problem with my print preview.I had a color plot with points on it.For example a point touching the line 2.But when i try to have a "print preview".I see that the point moves a little up or down and is no more touching the line.Is there a problem with my mapping modes(I use MM_TEXT).Please suggest me where the problem lies and where i went wrong.
-
- service and running processes question
by danerider
- 1 Replies
- Last post
by Mike Danes
- I was under the impression that an application running as a windows service would not appear under the "Processes" tab of the Windows Task Manager. I noticed that a service I created shows up. Is there a property that I need to set so that it does not show up I want to avoid the user possibly killing the process, I dont mind if they stop it from the service manager I just dont want them
-
- How to convert System::String^ to array<unsigned char>^ ???
by jeff taipale
- 1 Replies
- Last post
by Viorel.
- OK,
This is making me nuts. I'm trying to make an S-record routine in an application that receives an array<unsigned char>^ with the binary image and want to return another array<unsigned char>^ that contains the S-record.
A snippet to show my dilema:
checksum = byte_count;
System: tring^ sC;
for (i = addr_bytes - 1; i >= 0; i--)
{
c = (address >>
-
- LoadLibraryEx fails on 64 bit dll
by JaneL
- 3 Replies
- Last post
by JaneL
- I am having trouble loading a 64 bit dll with LoadLirbaryEx.
The problem seems to be specific with this dll. Every other dlls load fine with the same LoadLibraryEx call.
The things I tried:
1)Use Depends to get all dependency of the dll, make sure I get the 64 bit copy and copy them all to the local directory where the dll locates, it doesnt help.
2)Alter system path variable to in
-
- Visual Studio Compile Settings
by Cookster
- 10 Replies
- Last post
by Eugene Zakhareyev
- I wasn't sure really where to post this but I'm having issues with compiling released products using Microsoft Visual Studio 2005. All programs are written in C++. I have 3 differennt programs I'm trying to compile. 1.) Console application in C++ 2.) GUI application in C++ 3.) GUI application in C++ with .Net framework Now, I've compiled 1 and 2 succesffuly in Bloodshed Dev C++ and was able to run
-
- VC++ 2005 redistributable
by
- 14 Replies
- Last post
by Nelson B
- Hi, I'm trying to get an MFC application compiled with VC++ 2005 to run on a machine with VC++ 2005 express. There seems to be a problem with the manifest (which I don't fully understand despite reading the info on msdn). The original error in the event log when I tried to run it said Microsoft.VC80.CRT not installed so I installed the platform SDK and also copied over the atlmfc directory from th
-
- Deploying VC++ dll onto other machine
by durianpuff
- 8 Replies
- Last post
by Adrian Accinelli
- I have written a program that has VC++ dll and it is being called by a C-Sharp program. I have deploy it on another machine and getting this error. Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'AvDnCpp, Version=0.7.2560.37796, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the applicati on co
-
- How to assign hotkeys to buttons in VS 2005
by procrasti
- 4 Replies
- Last post
by procrasti
- Hi
As the header says, I am trying to assign hotkeys to my buttons in VS 2005 (I am creating VC++ MFC Applications). In the older versions I used to put the '&' key before the letter eg e&xit to make the 'x' underlined and a hotkey. Can someone point me in the right direction please. I have trawled through help for over an hour and asked all my contacts!
Thanks and regards in advance
-
- maby i found the problem
by Andruu75
- 14 Replies
- Last post
by Simple Samples
- To the Pros out there: Hy, im searching for a bug since 2 days, and i asked a lot of pros in my company, but nobody could help me. Heres the situation: Visual Studio Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) I had a project with a strange bug, so i could melt down the problem into this simple program (I took the original Project and deleted file after file to look when i
-
- Raising exception in one thread, handling in another..
by andy237
- 3 Replies
- Last post
by einaros
- Hi, I am a bit curious.. Can I raise exception (with RaiseException() ) in one thread and get it handled in another thread This is needed for operation stop-functionality. I thought it would be nice to have one dialog where is stop button, and it stops whatever the main thread is doing.. To the visual studio part of the question ;) Does anybody know how it is done in Visual Studio It's possible
-
- How do I copy a class instance with a vector of instances of it's own type?
by Simulacrum
- 8 Replies
- Last post
by Simulacrum
- #ifndef _NODE_H_
#define _NODE_H_
#include "point.h"
#include <vector>
using namespace std;
class node
{
public :
node();
~node();
point node_position; bool operator == ( const node &) const ;
point grid_position;
bool walkable;
bool grid_exit;
vector<node> neighbors;
};
#endif
In the above c
-
- Pointer troubles
by Hisham Aziz
- 8 Replies
- Last post
by carby07
- OK I am trying to use the built in functions from a library known as etSAPI, its an eToken Library.
Specifically the function I am trying to use is:
CK_RV SAPI_Server_Unblock (
CK_CHAR_PTR pPin,
CK_ULONG ulPinLen,
CK_VOID_PTR pChallenge,
CK_VOID_PTR pResponse
);
Parameters
pPin
[in] Pointer to the Security Officer (SO) PIN string.
ulPinLen
[in] Length of SO
-
- 1>LINK : warning LNK4001: no object files specified; libraries used
by ubernoir
- 10 Replies
- Last post
by Simple Samples
- i'm new to c++ and i can build and run charles petzold's hello world message box in Microsoft visual c++ 6 but not 2005 i get this linker error 1>LINK : warning LNK4001: no object files specified; libraries used 1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup