-
- Using managed dll from unmanged C++
by akdpr
- 2 Replies
- Last post
by Bite Qiu - MSFT
- I have got a vb.net dll which has following
Public Class MyClass // Constructors Public Sub New () // Methods Public Function MessageFromClient ( ByVal Message As String ) As Integer
End Class
I need to access this in my unmanged C++ application. I am new to VB and I don't what is the correct way to export a method from a VB.net assembly.
-
- VS2005 Implement an existing IDL
by Vedran211
- 10 Replies
- Last post
by Vedran Bratic
- Hi, I was given an IDL file and was asked to implement it. How can I create a Project with VS2005, load the IDL somehow and let VS2005 generate the classes with empty methods. After that I just have to implement each method. That should actually be possible, because all the information about the classes already exists in the IDL-file, right Can somebody help me or give me a hint Thanks, Vedr
-
- Allocation problem
by Hilikus
- 14 Replies
- Last post
by Simple Samples
- I'm using VS 2002, and I'm having an allocation problem. When the program tries to allocate a new block, access violation occurs, but not in my code and not always. Debugger says the error is in the CheckBytes(...) function, and as far as I can tell, it's a function that is called when the 'new' operator is used (when I break the execution, VS opens the dbgheap.c file). I sent my project to someon
-
- Returning a ref class nullptr from a generic function
by Gordon Watts
- 6 Replies
- Last post
by Gordon Watts
- Hi,
I'm a bit stuck. I see references to the answer to this in other posts, but I don't quite get it.
I'd like the following prototype to comple:
generic < class T> where T: ref class
T ^GetBestObject ( const ::TObject *obj);
with or without the constraint on T. I thought that by adding the constraint I would get around the error " error C3229:
-
- Question about Base64Encode
by JustMe565998
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi, one question about Base64Encode : char * target = new char[cLng]; int target_len = Base64EncodeGetRequiredLength(binVec.size()); Base64Encode( (const BYTE*)&binVec, binVec.size(), target, &target_len ); looks like this Code is ok, but now i need to put the result in 'target' into a BSTR. Any suggestions THX in advance JustMe
-
- CWinApp destructor
by Bill_Thompson
- 2 Replies
- Last post
by Sheng Jiang
- Why doesn't the CWinApp class have a destructor
-
- 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
-
- string in array
by procpass
- 7 Replies
- Last post
by Sam Wane
- Hi, i want to insert string into array. how can i do this ex; int main() { char x= '0'; bitset<8> b1(x); char name[] = {'e','g','e','m','e','n'}; char bin_name[7][32]; for(int i=0;i<6;i++){ x = name ; bitset<8> b1(x); cout<<b1<<" "; bin_name [32]= b1; // its related my question, ii know that this can only include one character. }
-
- 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
-
- why the fread function is crash?
by houwenqiang
- 3 Replies
- Last post
by crescens2k
- I have use one Dll that maked by another.this DLL is compiled with /MT.in this DLL ,he receiver one FILE pointer from my own program,then call the function fread to read data fron file .
my program is compiled with /MT also, I send the stdin to the DLL.but when the function fread is running ,it is crash.
I check my code and the dll code ,all have not error .
so I do not get the reason of
-
- Thread Sleeping and Hook Callbacks
by Zyphon
- 14 Replies
- Last post
by Aleksandr Tokarev
- Hey,
I'm working on a Win32 application that doesn't have its own window, but listens to keys typed globally via a LLKeyboardHook and moves the mouse every couple of seconds. In order to keep the mouse from moving all the time, I have the thread sleep for a few seconds in between mouse moves, but during this time the hook callback doesn't execute, which makes sense because the thread is sle
-
- 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
-
- Member offsets in derived classes
by Sam Hobbs
- 14 Replies
- Last post
by Sam Hobbs
- I expected the offset of member m_RecordSize to be zero for both classBase and classDerived in the following but instead m_RecordSize is at offset 4 within classDerived. Is this due to the vtable in classDerived
For what it is worth, the reason this is important is because I have many more classes derived from classDerived that I am writing to disk so I need to ensure I understand the format of
-
- IDiaSymbol::get_callingConvention?
by BarryTannenbaum
- 5 Replies
- Last post
by BarryTannenbaum
- I modified the Dia2Dump sample application to add the following code to the bottom of the PrintFunctionType function: DWORD dwCallConv = -1; HRESULT hr; hr = pSymbol->get_callingConvention (&dwCallConv); if (S_OK == hr) { wprintf (L" [%d] ", dwCallConv); } I then dumped the version of vc80.pdb generated by building the sample. I *never* saw a successful return from get_ca
-
- IWebBrowser::Stop doesn't work
by SaloS
- 1 Replies
- Last post
by Sahir Shah
- In some cases IWebBrowser :: Stop doesn't work. I.e. before call this method I call get_Busy and it returns true, and after IWebBrowser :: Stop method get_Busy returns true.
I need to stop any navigation activities because I need to close window but I cannot. Because when I call DestroyWindow application hang up in method SetClicentState(NULL) in
COleControlSite :: ~COleControlSite</FONT(
-
- linking errors
by coder007
- 4 Replies
- Last post
by coder007
- hi all.. i am getting following linking errors during migration from vc6 to vc8..
warning LNK4221: no public symbols found; archive member will be inaccessible ( in debug only, no problem in release )
warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored ( in both debug and release )
can any one please help
thnx in advance..
-
- Calling C++/CLI dll from C#
by cgraus
- 4 Replies
- Last post
by cgraus
- I work on an app that controls a Canon camera in C#. Until now, I used a common C# wrapper for their SDK. They have a new SDK.
So, I wrote a wrapper in C++/CLI. But, it stopped working, it gives an error : The specified module could not be found. (Exception from HRESULT: 0x8007007E). I found on my notebook that creating a vanilla C++/CLI dll with a simple method, and calling it from C#, compile
-
- How to link..?
by hanumanth
- 1 Replies
- Last post
by Damien Watkins - MSFT
- Hi all,
I am having a Vc++ application containing several projects.
I am compiling these each and individual projects using process class in c#.
After compiling each project obj files are creating.After that how to link the compiled projects to make executable file
Any ideas plz...
Thanks
--Hanu
-
- Visual c++ 2005 error: C2597
by WILLIAMXXX
- 4 Replies
- Last post
by WILLIAMXXX
- Hello
I have a label and a timer.
For the label have I the code:
this ->label1->Text(System: ateTime: econd);
I click on Debug.
I have then the next error:
Error 1 error C2597: illegal reference to non-static member 'System: ateTime: econd'
What go here wrong
Can you me help
Thanks
-
- Compiler very slow and termination problems
by herrerik
- 2 Replies
- Last post
by Bite Qiu - MSFT
- Hi I just changed from vc++6.0 to vc++2005 PRO so the difference is big. I have some questions. 1. The same code takes more then three times to compile (!) compared to old 6.0. Is it doing something extra or is it badly coded Can i disable this extra it does to redoce time for compiling as i did fine with the "light compiling" done by my old compiler (vc++6.0). 2. The program im coding d
-
- Linker error undefined symbol vc ++ .net 2003 can you help me solve
by subramani_ponnusamy
- 3 Replies
- Last post
by Damien Watkins - MSFT
- // The following code
// returns error
Linking...
test.obj : error LNK2019: unresolved external symbol "public: virtual class IDCossapYPositions * __thiscall IDCossapYAxis::getPositions(void)" ( getPositions@IDCossapYAxis@@UAEPAVIDCossapYPositions@@XZ) referenced in function "public: class IMotorPositions * __thiscall IDCossapYAxis::getPositions(void)" ( getPositions@
-
- cl : Command line error D8003 : missing source filename
by subingya
- 2 Replies
- Last post
by Jonathan Caves - MSFT
- Hi all
i faced the following error in VC++ 2005:
Build Log
Rebuild started: Project: FilteredSubscribe, Configuration: Debug|Win32
Command Lines
Creating temporary file "c:\Program Files\StreamBase Systems\StreamBase.5.0\sample\client\Debug\RSP00001E24363568.rsp" with contents
[
/Od /I "C:\Program
-
- How to acces picture in the resources
by idos
- 3 Replies
- Last post
by Sarath.
- Hi, I want to add pictures to my project so I go to Project->resource->add resource than I import the picture I want. But now the problem is, how to access my picture from my class for example my picture is pict.bmp, so after I added it to resources how to call it Thank you in advance :D
-
- Embedding manifest takes forever while building dll
by one seventh sword
- 1 Replies
- Last post
by Ted.
- Hi,
I am using visual C++ 8.0.50727.42
When I try to build a dll, the output window shows:
Embedding manifest
And it takes forever.
Any idea
-
- error LNK2001: unresolved external symbol
by L_elfe
- 4 Replies
- Last post
by Artral
- Hello everyone, I know that there is many post on this type of error but I didn't find any solution to my problem on them. I developped a code under Linux and I need to have an windows executable and the .dll. Code is write in C (I already try to add extend "C" { ...} ). Under Linux, all work well but when I create a project on Visual Studio, I didn't succed to compile. I wrote a little