-
- Using std::string across DLL boundaries crashes program in release mode
by thrice
- 2 Replies
- Last post
by thrice
- I have a c++/cli managed program that uses a native dll which contains my network library.
My network library has an abstract class that must be inherited from and has pure virtual functions that must be defined in the derived class.
In the defined virtual functions in the derived class, strings are passed across the DLL boundary to other functions in the base class, which then copy and
-
- const char * linker bug
by AaronNGray
- 9 Replies
- Last post
by Simple Samples
- The following code produces an incorrect error message :-
Code Snippet
extern void fatal( const char *)
void main()
{
fatal( "test");
}
test.obj : error LNK2019: unresolved external symbol "void __cdecl fatal(char const *)" ( fatal@@YAXPBD@Z) referenced in function _main
Note the "char const *" which should be "con
-
- Problem regarding Release Version
by
- 3 Replies
- Last post
by Marius Bancila
- Hi, I have done a project in VC++ which works very fine when it runs in debug version. But when I compile it in release version it doesn't work. The problem is that I am drawing some graph on the screen it draws when it is in debug version for the values given. But when the same values given in the release version the graph is not drawn. Plz any one help me in this issue. Regards, Murali.S
-
- Error C1853 Compiler Error.
by Andres_69
- 2 Replies
- Last post
by Andres_69
- Hi, i'm a beginer on C++, i have a C++ Express Edition.
I have a error compiler: C1853 in line
#include "stdafx.h"
Tanks for all.
-
- convesion error
by aguess
- 6 Replies
- Last post
by Giovanni Dicanio
- hi
i have a problem in conversion ,i am using the strcat_s to concatinate 02 string(CStringW) ,and i got an error message
Error 1 error C2664: 'strcat_s' : cannot convert parameter 1 from 'CStringW' to 'char *'
strcat_s( str1 ,3, str2 );
-
- C++/CLI and introspection
by Fréd&#233
- 1 Replies
- Last post
by Nishant Sivakumar
- Hello, I would like to use introspection from C++/CLI in order to generate xml files representing classes of a library in C++. Do you know where to find documentation I didnt find anything on internet. Thanks in advance! Frederic
-
- office com add-in theme support
by Georgi Jelqzkow
- 4 Replies
- Last post
by Georgi Jelqzkow
- Hi,
I've developed a PowerPoint com add-in with MFC , using VS2005 , but I have problems enabling the theme support.
When a put this line in the stdafx.h file -
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
-
- Can I convert a dll in to a executable?
by Chanakya
- 6 Replies
- Last post
by Chanakya
- I know it sounds crazy, but the need is for unit testing the "Non-exposed part" functions of the Dll, which is not possible unless I actually write my code in the dll and some how make it to run. So I thought coverting the dll in to executable for the purpose of execution would be one method.
Thoughtts or suggestions
-
- Why Visual Studion "find in files" sometimes does not work?
by PaulDotNet
- 10 Replies
- Last post
by PaulDotNet
- Sometimes for no apparent reason "find in files" does not search at all. It says something like "no files found". Pressing Ctrl-ScrollLock fixes the problem and find in files works again. I could never figure out the purpose of this "feature" and when it disables "find in files". The same annoying bug/feature exists in VS 6 and VS 2005. If I invoke "fin
-
- Every time while relocate : Add Files to Project
by prayami
- 2 Replies
- Last post
by C.Nic
- Hi,
In our project there are many files I have to add from different directories. And that is working fine. But if I
relocate that project folder then path of all the added files is changed. And I have to delete those files and add
the same files again every time. Is there any way to give relative path to this files so if I change the location
then I need not add all the files again.
-
- How to combine managed and unmanaged types?
by Alexander Stoyan
- 8 Replies
- Last post
by TilakGopi
- Hello.
I have some managed class MyClass and unmanaged structure my_struct. And I need to create a member of MyClass of type my_struct.
typedef struct { int a, int b } my_struct;
public ref class MyClass
{
my_struct val;
public :
}
But compiler reports me about the error:
cannot define 'my_struct' as a member of managed 'MyClass': mixed types are
-
- Declaring data structures inside the class
by tester_abc
- 4 Replies
- Last post
by einaros
- Hi, I am having trouble declaring data structures inside the class but when the same syntax is used outside the class in the global space it works. It looks something like this: struct myStruct {
TCHAR * myStr; TCHAR * mStr2; }; class myClass {
public:
//class declaration stuff
myStruct structDeclaration[] = {
{ TEXT("array 0 sample text 1"), TEXT("array 0 sample text
-
- problem with a .exe
by belisa
- 4 Replies
- Last post
by belisa
- hi, well I have a program .exe done with visual c++, the problem : this only run when I setup the visual studio 2005 , I need that this program be independent . thanks!
-
- beep continously
by Randy Seedle
- 3 Replies
- Last post
by Viorel.
- Is there a function that will beep continously that is non blocking It would also need to be able to be shut off at a later time (unspecified on creation).
Randy Seedle
-
- CArchive: Save on memory(RAM)
by kian_z20
- 2 Replies
- Last post
by kian_z20
- CArchive is very useful and easy to use in saving a document on a file. If it was to be done manually, the programmers would spend many time to save objects and face lots of errors.
I now need to save an object in the memory for copy and paste operation. is it possible to have CArchive to save on memory (RAM) rather than a file or somehow open a place on memory that pretends to be a file p
-
- C2244 Unable to match function definition to an existing declaration
by David N.4117
- 6 Replies
- Last post
by luuf
- Hi All,
I have the following code, which was compiled and linked fine under VS2005 RTM:
CPP_TYPENAME AllocatorBase<T>::pointer AlignedAllocator<T>::allocate(size_type n, const void *)
{
#ifdef SSE2_INTRINSICS_AVAILABLE
if (n >= 4)
return (T *)_mm_malloc( sizeof (T)*n, 16);
else
#endif
return new T ;
}
After applying VS2005 SP1, t
-
- Using AFX_MANAGE_STATE
by Sarath.
- 7 Replies
- Last post
by Brian Kramer
- I've a MFC extension DLL. My question is that when all i need to call AFX_MANAGE_STATE( AfxGetStaticModuleState()); I suppose, it needed to be called while Creating (initializing) the resources. e.g Functions which creates Dialog, Icon, Bitmap (or whatsoever in the DLL resource file) The KB Article says that we only need to call this inside the callbacks and windows procedures instead of p
-
- Solving Problem using Recursion in C++
by shazi
- 2 Replies
- Last post
by Brian Kramer
- Given a 2^n by 2^n checkerboard with any one square deleted, it is possible to cover this board with L-shaped pieces.
For example, a 4x4 checkerboard coudl be covered like this.
w
w
u
u
w
t
t
u
j
t
e
j
j
e
e
you shall represent the checkerboard ising a dynamically allocated 2-D a
-
- Static classes causing warnings.
by David S. Anderson
- 2 Replies
- Last post
by Dav? S. A???????
- I have a header file with numerous static classes causing lots of warnings. Here is the warning:
WARNING C4091
Warning 1 warning C4091: 'static ' : ignored on left of 'nameofsomeclass' when no variable is declared c:\documents and settings\dave s. anderson\my documents\visual studio 2005\projects\development team suite\ws1000c\objects.h 15 Here is my header file:
Code
-
- Cannot see the version information in the properties of an EXE.
by susqu
- 2 Replies
- Last post
by susqu
- I am building a C++ project that creates an executable. When I right click and see the properties of that executable, there is no version tab that will give me the version information of that exe. Can you please tell me what I can do so that I can see the version information of my exe. I would like to put the company information, copyright and file versions in that exe. I know you would do that in
-
- Full Size Image to Thumbnail Image
by krishnasamy
- 3 Replies
- Last post
by Sreedhar DVS
- Hi,
I have a 1.12 MB size of full Image Picture. I need to convert that picture as Thumbnail (KB size) picture in vc++.
Anybody knows
-
- problem
by code bleu
- 3 Replies
- Last post
by code bleu
- can anybody tell me how to stop the debugger. this is my problem. i have a solution containing two projects which are to be executed concurrently. however, after some code changes, i cant run them as my debugger is kinda still running( the f5 and cntrl f5 don't work). even if i close the solution and reopen it i still get the same result. moved from codewarrior to visual studio.
code bleu
-
- How to modify or change password - gui visual c++ .net
by agent14
- 7 Replies
- Last post
by agent14
- Hey everyone...I'm doing a project for school in visual c++ and I'm using .Net framework 2.0...with clr enabled...I am able to create usernames and passwords...however I'm not sure how I could modify the username or password...any tips guys One thing to note though, I created my login files using an .xml file, I'm not sure if that would make a difference. Thanks.
-
- Creating a text box in a dialog and processing it using the message loop
by crazy_kebab
- 4 Replies
- Last post
by einaros
- How do make a text box in a dialog I need it so that i can set a text box to a string, and as the user edits the numbers of this box, any other numbers of the same type become that value, e.g. 12234356 If i change either 2 to a Q then it would instantly become: 1QQ34356 How do i initially make a text box in a dialog And how am i going to pass a text changed message to the message loop within a dia
-
- Consume Web Services via C++?
by LexYW
- 6 Replies
- Last post
by Bill Cumming
- Hi, my current project requires me to access web services provided by a mail archiver from C++. I've done some research but am still not sure if there exists a "proper" way of doing this. Shall I choose SoapToolkit or manually formatting Soap messages in XML I was imagining that there may be some tool like WSDL which automatically generates proxy code given a wsdl description. But this i