-
- get , set native
by CyberLord_Dan
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi!
Using .net framework, you can create sth like this:
public bool variab
{
get{return _vari;}
set{_vari=value;}
}
I need to do this within a native project (Win32). How do I do this
-
- How to open TreeCtrl item via Enter key?
by R.Arjun
- 2 Replies
- Last post
by Simple Samples
- Hi,
I need to open a CTreeCtrl Item via Enter key. When searched MSDN i have seen TVN_KEYDOWN notificatoin available to achieve this! But does this tells about Enter key to the parent window
And also i need to track the treeview items via typing their name..could anyone direct me how to achive this with CTreeCtrl & CTreeView
Thanks in Advance,
Rjn
-
- Template Selection Visual C++ 2005
by software_writer_nyc
- 13 Replies
- Last post
by einaros
- Keyword C++ Template Matching Selection
I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class.
Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects
-
- VS2005/ DLL Debugging, How can I debug my dll file efficiently?
by Martin J. Kim
- 0 Replies
- Last post
by Martin J. Kim
- Hi, all! I developed ADO.NET library(DLL) with C++/CLI based on ODBC Driver. Every syntax are OK!!, Current step is on debugging, semantically. But, I have lots of problems. I mean, I tested C# with DLL file. I have no proper way to debug it. compile c# -> run -> error check -> modify c++/cli code -> recompile -> linking -> compile c# -> run -> error check ->.........
-
- about perl or C
by akhilesh_vyawahare_63869c
- 8 Replies
- Last post
by Simple Samples
- hello friends,
i have learnt C & have done it intensely for 2 months. still i think that all the ins & outs of the language is not known to me. the courses we do here are just the commands we use regularly. i am not at all satisfied with my learning of the language.
so kindly refer me or help me understand the ins & outs of the languages like C or perl.
free links may help a l
-
- What can I solve the problem "error LNK2019: unresolved external symbol"
by luckforyou
- 2 Replies
- Last post
by luckforyou
- I'm trying to compile the raptor parser at windows.
I can't solve the Linking error.
Plz.. help me.
The error message like that.
______________________________________________________________________
Creating library .\Debug/raptor.lib and object .\Debug/raptor.exp 3>raptor_rss.obj : error LNK2019: unresolved external symbol _strcasecmp referenced in function _raptor_rss_start_e
-
- Enum question
by J Shaddix
- 8 Replies
- Last post
by einaros
- Howdy folks! I'm wanting to do some proper (yet simplistic) enum coding and need some help. What I'm wanting is something like the following: class DBInterface { public:
enum CREATION_FLAGS {
CREATE = 0x01, OPEN = 0x02, OVERWRITE = 0x04 }; enum STATUS_FLAGS {
OPEN = 0x01, CLOSED = 0x02 }; }; int main() {
int flags = DBInterface::CREATION_FLAGS::CREATE|DBInterface::CREATION_FLAGS: PEN;
-
- crash at launch seemingly unrelated to source code
by j104
- 1 Replies
- Last post
by Bite Qiu - MSFT
- This happened while working around the crash that appears as soon as you start including atlbase.h or atlstr.h.
Surprisingly, the crah happens in the same way.
any ideas workarounds welcome:
repro steps:
in Visual studio 2005, create a windows form app.
change from .clrpure to /clr
insert a simple text box and button
on the button click try the following code:
IntPtr in
-
- declaring zero size array in vc++
by pavan_734
- 9 Replies
- Last post
by Peter Ritchie
- Hi,
Suppose I have defined an empty array like this:
int array[] = { };
This will compile in linux but Iam getting following error in windows:
error C2466: cannot allocate an array of constant size 0
What is the work around for this problem
-
- volatile, somewhat puzzled (C not C++ question)
by Hugo6003
- 13 Replies
- Last post
by Hugo
- Hi
I have used volatile many times on several platforms, but I'm seeing something puzzling.
We have code (our own fast read/write spin lock, coded in C). And although it runs correctly both debug and release builds, I am puzzled over what I see in the debugger memory window when running a release build.
The lock data is declared as a typedef volatile struct ...
in deb
-
- Dynamically allocated arrays of strings
by Andrew XYZ
- 5 Replies
- Last post
by Andrew XYZ
- If I dynamically allocate arrays of C++ strings using malloc, assigning a value to a string in the array causes a run-time error. I assume that this is because the allocated memory has not been initialised correctly. How do I do the initialisation I cannot find any member function of the class string that does this. I don't want to use vector from the C++ standard library to set up the arrays. Any
-
- Bogus C2440 error using generics and "where" clause - possible bug?
by Whitney Kew
- 2 Replies
- Last post
by Whitney Kew
- Hello,
I cannot figure out why the compiler doesn't allow this snippet of code:
generic < class A, class B> where A : B
ref class MyClass
{
B MyFunction(A a)
{
return a;
}
};
I am explicitly specifying that class A derives from class B in my "where" clause, so shouldn't I be able to return an object of type A from a function t
-
- WCHAR to System::String
by PenguinAdam
- 2 Replies
- Last post
by Bite Qiu - MSFT
- I am trying to create a list of all the running processes, but the PROCESSENTRY32 uses a WCHAR. I can't figure out how to convert to System: tring so I can use it. Can anybody give me some help
Code Block
HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
PROCESSENTRY32* processInfo = new PROCESSENTRY32;
processInfo->dwSize = sizeof (PROCESSENTRY32);
-
- list of default libraries being pulled in
by SteveLK
- 2 Replies
- Last post
by SteveLK
- Is there a way to get a list of the .lib files that will be searched for when you have "Ignore All Default Libraries" set to No in the Linker/Input properties grid
-
- Can't use resource view to edit resource in VC8
by vbvan
- 14 Replies
- Last post
by Obliterator
- When I double click the rc file to edit the resource, the IDE will inform me the "fatal error RC1107" message. Even the resoure file of newly created project by VC8 are not able to be edited. These resource files are valid since I can edit them in VC7.
-
- fatal error C1001 after installing SP1!
by mahmoodn
- 14 Replies
- Last post
by mahmoodn
- recently I got
Code Block
"fatal error C1001: INTERNAL COMPILER ERROR 'msc1.cpp', line 2701 " in visual .NET 2003. I found that this problem can be solved with SP1. after I install SP1, now it says the same error message but in different line: fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2708 ) . part of the code that has problem is:
-
- Problems with 'locally defined symbol' (LNK4049/4217) for standard functions
by Dave_m_moore
- 3 Replies
- Last post
by Holger Grund
- I'm getting the following linker errors having moved from .Net to VC 2005:
2>BPProxy.obj : warning LNK4217: locally defined symbol _sscanf imported in function "public: enum SysStatus __thiscall BPProxy::getParameter(char *,float &)" ( getParameter@BPProxy@@QAE AW4SysStatus@@PADAAM@Z)
2>SysString.obj : warning LNK4217: locally defined symbol _strncpy imported in funct
-
- CryptUI.dll
by Adam35413
- 2 Replies
- Last post
by Bite Qiu - MSFT
- I recently created an application that is using a function in CryptUI.dll. I developed this application on a Vista machine, and then tested it on an XP machine. Everything works great.
However, I moved the program to a Windows 2003 system and the program fails. I get an error message that says Windows can't find the entry point for my function (CryptUIDlgSelectCertificateFromStore) in Cryp
-
- Importing class from DLL
by Ponas
- 2 Replies
- Last post
by Simple Samples
- Using LoadLibrary method is it possible
-
- _malloca/_alloca question
by Raev
- 4 Replies
- Last post
by einaros
- Things were clear with _alloca, with the stack allocated memory being dismissed once you leave the function where _alloca call was issued. This prevented C++ style wrappers using fast stack memory allocation:
Code Snippet
template <typename T>
class AutoArray
{
public:
AutoArray(size_t size):
mPtr( static_cast<T*>(_alloca(size*sizeof(T)))),
//
-
- How to get deskband interface?
by forumenu
- 1 Replies
- Last post
by einaros
- ____________________ | | | | | | | | | | deskband | HTML | | | | | | |
-
- Real I/O access in WINXP platform
by Robert_unicorn
- 14 Replies
- Last post
by superdos
- I'm trying to write a program which can offer customer to monitoring the system status in WINDOWS-XP (such as the temperature, GPIO, watch dog timer which offered by super I/O chip). I'm using the VS2005-professional edition, could anybody advise me about these question: 1). Which type of program (VC++ C# MFC or others) should I choose 2). How could I access the port I/O (such as "4E, 4F, 2E
-
- Settings Designer for C++ Windows Forms apps?
by proximac
- 4 Replies
- Last post
by Reaver
- I'm trying to create a Windows Forms app using C++ in VS2005.
I have found many tutorials that specify how to get to the Settings Designer - right click on the project in Solution Explorer, select Properties, and click on the Settings tab. This works for C# projects, but on C++ projects, the Properties dialog is completely different, and doesn't have a Settings tab.
So how do I get to the S
-
- How to set button as default in MFC?
by ketu0001
- 4 Replies
- Last post
by ketu0001
- How to set button as default in MFC
I could not find any option to set it as default , by right clicking and observing properties of it.
-
- error LNK2019: unresolved external symbol
by Mohsen teimouri
- 3 Replies
- Last post
by Mohsen teimouri
- Hi,
I am trying to run particle systems on visual c++ 2005. The source is an open source and is written by a profetional ( http://www.cs.unc.edu/~davemc/Particle/ ) (CS people in a university). I have linking problem. I tried to compile it with /clr but I got error 2028 in addition to error 2019. Could you plaese help me to run this example.
Thank you,
Mohsen Teimouri
1>------ Build