-
- Sinking a C# COM object's events in VC++
by Eric Fritzinger
- 3 Replies
- Last post
by Eric Fritzinger
- Hey there, I've been looking everywhere for an example of how to do this. Unfortunately, it has to be done this way because of pre-existing code. So, I have a C# DLL, and the library is properly declared to interoperate with COM. What I'm trying to do is sink the events that get fired into my C++ code so that I can handle them. Can anybody link me to any working examples of this Thanks!
-
- Disable button toolbar
by cjacquel
- 1 Replies
- Last post
by Mike Danes
- Hello, How to enable/disable a button in a CToolBar Or do you have source code to insert or remove button in a CToolBar Thank you, Christophe,
-
- How to test if a file is locked without locking it ?
by Leto58
- 7 Replies
- Last post
by Leto58
- Hi,
I have a background function that checks if a file has been released by the application that opened it, in order to process the file as soon as it has been modified, and only if it has been modified.
To do this, my idle function just tries to open the file with mode CFile:: shareExclusive (and close it right after, not to lock it) and returns if it cannot open it. If it can, it t
-
- it is neither a .NET assembly or registered Activex Control
by bxchan
- 13 Replies
- Last post
by Mike Danes
- Hi, I try to add a TestEngine.dll from CSR website to my VC++ .Net 2005 but I saw the error message below
"Could not add a reference to file ¡®TestEngine.dll¡¯ because it is neither a .NET assembly or registered Activex Control."
May I know what is the procedure to add this dll file
Very appreciate if any help provide.
Thanks.
-
- Instantiantion of abstract class
by Yves1
- 5 Replies
- Last post
by Damien Watkins - MSFT
- I am not sure where I went wrong. I have extracted the additions in the *.cpp and *.h files.
: error C2259: 'PathDependentUpAndOutC' : cannot instantiate abstract class
In the cpp file:
"
//second one, Q2
PathDependentUpAndOutC::PathDependentUpAndOutC( const MJArray& LookAtTimes_,
double DeliveryTime_,
double Barrier_,
double Rebate_,
const PayOffB
-
- help with conversion
by Korndog07
- 3 Replies
- Last post
by Korndog07
- I'm trying to convert a solution from 2003 to 2005. I found part of my problem was my initial install settings. Fixing that eliminated about 100 errors. Now I'm not sure what to do to fix my last two errors. This is the message I get:
1>C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlchecked.h(87) : error C2660: 'wcscpy_s' : function does not take 3 arguments
This
-
- a tool for editing text
by divya v
- 3 Replies
- Last post
by Atlanata
- I just wanted to know if there is any activex component which you can use to edit text. I want it to act as if it is a edtor for any program C/C++.......
-
- How can i restrict textbox to number?
by Asuran
- 3 Replies
- Last post
by Sdi
- Hi guys, I am new in c++ and Visual c++ and I'd like know how i can restrict my textbox to number. The user can only write number( int or float) in textbox. help pls
Thanks for atenttion
-
- 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@
-
- I need a socket example
by d_brandt
- 5 Replies
- Last post
by Simple Samples
- I've spent more hours than I care to remember trying to find a socket example worth a damn, so I could learn socket programming. However, not a single one will compile right. I always get errors, and I'm sick of trying to fix the errors. (and yes, I've linked my program to the ws2_32 library) I need an example that will compile correctly with Visual C++ 2005.
-
- Memory leak issue
by Dami
- 11 Replies
- Last post
by Dami
- Hi, I have stuck into this problem. I want to remove memory leaks from my program, but the following error is occuing on the delete[] statement in the following code segment. Unhandled exception at 0x1020a702 (msvcr71d.dll) in IEXPLORE.EXE: 0xC0000005: Access violation reading location 0x03acfffc. if (m_pbits != NULL) { delete[] m_pbits; m_pbits = NULL; } m_pbits = new BYTE[rec
-
- StgopenstorageEx
by Rups11
- 14 Replies
- Last post
by josip cagalj
- hr1 = ::StgOpenStorageEx(s.AllocSysString() ,
STGM_READ | STGM_SHARE_EXCLUSIVE ,
STGFMT_STORAGE,
0,0,0,
IID_IPropertySetStorage ,
( void **) &pPropSetStg);
it gives result correct as S_OK
but again i am trying to open that storage it gives share violation as useal
but i want to open that storage again in read only mode ..
can anyone help me how to write followin
-
- Changing .exe icons
by Erazza
- 11 Replies
- Last post
by Erazza
- How do I change exe icons in C++
-
- File Handler not working
by Howler72
- 8 Replies
- Last post
by Howler72
- Hello All,
I am having a hard time trying to figure out why my code does not work. I was tasked with writing a small win 32 console app to accept user directory and file name to write to the local machine. My app creates the directory at this point however I cant the file to be written. What am I doing wrong All help appreciated.
Code Snippet
int main(){
char user
-
- Template Hell
by Kayako Inc.
- 2 Replies
- Last post
by Kayako Inc.
- Hello Gurus, As I suspect many of you do, when I run into something I don't understand, I can't move on until I fully understand it. Today I have encountered one of these things. I will do my best to explain this clearly. I am writing a plug-in for Outlook, so I have #imported msoutl.olb. This creates 2 files: msoutl.tlh and msoutl.tli. In my code (in a header), i have declared a class, which has
-
- win32_scheduleJob issue
by r&#228
- 2 Replies
- Last post
by räven
- Hi, I'm having trouble finding a perfect forum for this question, because it's both C++ and Windows related. I'm trying here though, hoping anyone of you has any suggestions. I'm working on a project which starts remote processes using the Win32_scheduleJob command (System.Management). It works fine, except when the started process tries to access our network drive. I've tried both using the mappe
-
- Create new threads
by Philly
- 4 Replies
- Last post
by Red Swingline Stapler
- hi,
can anyone give me an idea or point me in the right directection to creating new threads in c++ (unmnaged)
basicly,
i want to call a funtion but have it run in its own thread.
cheers,
Philly
-
- compiler problem
by Thorium
- 7 Replies
- Last post
by Jonathan Caves - MSFT
- Ok my problem is that I want to learn C before jumping into C++ or C# and was told to save the file as whatever.c. Well that works but i have no idea how to compile it using visual studio and it wont allow me to debug either. When i do it like this there is no Build button at the top. I go to new and click text file under general and save it as .c. Is there a button like F4 or F5 or something to p
-
- friend function generates c2248
by Juan Carlos Trimi&#241
- 3 Replies
- Last post
by Brian Kramer
- All,
I am having problem with a friend function generating error c2248. The code below shows what I am trying to do:
gregorian.h
---------------- class gregorian { friend bool operator<=(const gregorian &lhs, const gregorian &rhs) throw(); public: gregorian(void); //Default constructor (current system date). ... private: class gregorianImpl *pImpl;
-
- Problem with DLL Function
by CAGT
- 12 Replies
- Last post
by Sdi
- I'm brand new to vc++ but have been able to create a dll with very basic functions in it that I am able to rum from vb calls. The functions that run ok all use int types. Now I'm trying to get a simple function to run that manipulates some character strings and returna a concatenated string to vb but am having so much trouble. It seems working with character strings in c++ is no easy task. The err
-
- Download Program?
by Icywind2
- 12 Replies
- Last post
by Icywind2
- I want to put a program on my website for people to download, but when they download the "project_name.exe" file they get this error message: "The application configuration is incorrect. Re-installing the application may fix this problem." I think they get this error message because it links to a application that doesn't come on the computer. I am using C++ Express Edition, if
-
- Upgrade to VS2005 gives problem with atlcom.h
by ravi_nilesh
- 5 Replies
- Last post
by P.GopalaKrishna
- Hi all,
I have been assigned a task to upgrade a solution to VS2005.The solution is originally written in VS2003 and Compile with 0 error and 0 warning in VS2003. This solution contains 48 Projects.
When I build this Solution in VS2005 than it gives following error
Error 5 error C2664: 'ATL::_CopyInterface<T>::copy' : cannot convert parameter 2 from 'ISTD
-
- Cannot debug
by vtortola
- 12 Replies
- Last post
by vtortola
- Hi! When I try break the execution o put a breakpoint, i get this error: No symbols are loaded for any call stack frame. The source code cannot be displayed. I'm using a VC++ General Empty project, what could be the problem Regards.
-
- Unregistering EDIT class gives 'Invalid Window Handle' error in Win32
by Rosh K Mathews
- 8 Replies
- Last post
by Rosh K Mathews
- Hi experts,
I am using Platform SDK to create customized Edit Box. I am successful in registering the EDIT class using RegisterClass for the first time.
When i close my dialog, i use UnregisterClass to un register EDIT class from memory. After calling this api, i am getting error 1400:Invalid Window Handle.
After this, i am unable to register EDIT class again as it gives 87:In
-
- How to use NetValidatePasswordPolicy API?
by stevenzhang123
- 4 Replies
- Last post
by decdan
- Hello,
Thank you in advance.
I have a question on using NetValidatePasswordPolicy API.
/// <summary>
/// NET_API_STATUS NetValidatePasswordPolicy(
/// LPCWSTR ServerName,
/// LPVOID Qualifier,
/// NET_VALIDATE_PASSWORD_TYPE ValidationType,
/// LPVOID InputArg,
/// LPVOID OutputArg
/// );
/// </summary>
[ DllImport ( &qu