-
- VC++ app that won't access SQL server
by zaurska
- 14 Replies
- Last post
by zaurska
- I really hope someone can help me this has been a "stay up 2 nights" problem for me and I'm really struggling.
I have a VC++ app that won't access SQL server; I'm about as sure as I can be that its the way I've written or distributed the code.
I've installed vc-redist (so all the DLLs are there) and sqplcli (I can make a DNS connection and its fine), the release I have o
-
- Set additional dll path?
by Thomas Friedl
- 3 Replies
- Last post
by Thomas Friedl
- I'm using some libraries for my C++ project and I don't want all these dlls in my programs root directory. Is it possible to move them to a subdirectory (for example lib) and tell the program to look in this directory for dlls Oh, I'm using VS 2005. Thx
-
- Libraries linkage errors make me CRAYZEEE
by spree
- 7 Replies
- Last post
by einaros
- Hey all, I"m frustrated from working with Visual C++ and libraries :/
I am developing my MFC based project, for which I wanted to add a log system to track my bugs and error msg and etc.,
I have created a static library project and created my Log class:
-
- How to enum access permissions and SIDs
by akhin
- 6 Replies
- Last post
by Sdi
- I want to make an enumration with all SIDs or account names in the system.
How can i enumerate permissions by accounts for a specific file/folder
I want to make an output like that :
File : c:\a.dat
ACL ACCESS ----------------------------- user1 read write
user2 read
user3 write
Thank you very much.
-
- How to programmatically start AutoPlay? (any language)
by jimNeocasa
- 2 Replies
- Last post
by Jaret Langston
- How to programmatically start AutoPlay (any language)
I'm trying to write an application for locked down kiosk WinXP PCs that prompts the user to login when they insert an autorun enabled CD/DVD into the CD/DVDROM drive and then starts the AutoPlay process once they have successfully logged in.
The Problem: I'm able to detect and suppress Autoplay but not able to start it. Does anyone have
-
- Microsoft Internationalized Domain Name (IDN) Mitigation APIs
by Agamura
- 2 Replies
- Last post
by Agamura
- Hi all, I'm trying to use the Microsoft IDN Mitigation APIs... but it looks like the import library (normaliz.lib) is missing. No way to get it from Microsoft's official website... The MSDN suggests the link http://www.microsoft.com/downloads/details.aspx familyid=e289bb2c-d111-4331-8fb2-cc6c5a026c93&displaylang=en... but it does not point to a valid page. I'm running Windows XP SP2. Any help
-
- How to append uint64 to std::wtring?
by CoolJammy
- 2 Replies
- Last post
by Ravi Kumar.J
- Hi all,
I have worked a lot and also searched for examples to append a varible of UINT64 to a std::wstring object.But i nowhere I found an example code or any hint.
Can anyone help me with an example code snippet for appending a uint64 variable at the end of a std::wstring object.
If possible can you please expalin the code, mainly from the memory point of view like how the
-
- How can I add 11 digit numbers
by Guy DeStefano
- 4 Replies
- Last post
by Guy DeStefano
- In adding pure unsigned numbers together, I only reach 4GB then it starts back to zero. I am using DWORD as my storage. I have the number ( 04280975538 ) being accumulated, and when I attempt to add the number ( 00019917744 ), I get the number ( 00005925986 ). Am using the += on the number being accumulated. Which varaible will allow numbers larger than 4 GB to be accumulated. Any help will be gre
-
- Operator overloading in VC++.NET Express Edition
by Modeller
- 5 Replies
- Last post
by Modeller
- Hi!
How can I overload operator[] or operator() for array scripting in Whidbey VC++.NET
Example :
public value class MyFunction {
private :
array<double> descreteValues;
public:
MyFunction(int n) { descreteValues = (gcnew array<double>(n)); }
/*
&
-
- JavaScript from CDHtmlDialog
by PadexArt
- 2 Replies
- Last post
by PadexArt
- I need to invoke a JavaScript function from a CDHtmlDialog. So far i couldn't find any information on this topic in the CDHtmlDialog documentation nor in the interfaces this class is wrapping. Thank you.
-
- How do I allocate memory for a String^?
by Corey Was Here
- 7 Replies
- Last post
by n0n4m3
- I've created a class containing a System:: String^ variable, but everytime I try to set it equal to a value I get a Null execption error. I was just wondering if someone could tell me how I allocate the space to set it equal to another String^ value. Any help would be appreciated. Thanks.
-
- Errors with DirectX in visual c++ 2005
by WILLIAMXXX
- 12 Replies
- Last post
by WILLIAMXXX
- Hello,
I make games with directx and visual c++ 2005
I have creating a small game.
as I compiling the game then have I errors:
Error 1 error LNK2019: unresolved external symbol _D3DX10CreateEffectFromFileW@48 referenced in function "long __cdecl InitDevice(void)" ( InitDevice@@YAJXZ) Game3.obj Error 2 error LNK2019: unresolved external symbol _D3D10CreateDeviceAnd
-
- MFC message handling
by sawer
- 3 Replies
- Last post
by Simple Samples
- Hi I want to ask a basic question about MFC. This is simple code
Code Snippet
#include <afxwin.h> class MFC_Tutorial_Window :public CFrameWnd { public: MFC_Tutorial_Window() { Create(NULL,"MFC Tutorial Part 2 CoderSource Window"); } void OnLButtonDown(UINT nFlags, CPoint point); DECLARE_MESSAGE_MAP() }; BEGIN_MESSAGE_MAP( MFC_Tutorial_Window, CFrameWnd)
-
- How can I do asynchronous socket proramming in console application?
by Sushantp
- 4 Replies
- Last post
by Viorel.
- I was trying with using WSAAsyncSelect , but it requires handle parameter of the window to which the message will be sent when an event occurs. So how can I get handle of a console application Or there is some other way to do asynchronous socket programming in console application. Thanks.
-
- Problem Creating a Class
by Zero_
- 11 Replies
- Last post
by Zero_
- Hi folks,
I'm trying to add a garbage collected Class to my WinForm app I'm writing using VS C++ 2005. At the moment, the compiler is telling me that there is no appropriate default constructor available when I attempt to create an instance of my class.
At the begining of my Form1.h file I have the following:
ref class UpdateResults;
Later on, I have a BGWorker who's
-
- mangled name
by Shouvik
- 14 Replies
- Last post
by Holger Grund
- Is there any API to retrieve the address of a method (private/public) using the mangled name. the method is supposed to be a class member.
we can know the mangled name from the .map file in VC++ 6.0
Please also suggest a method of using this in GCC.
-
- Checking if a trivial event has any handlers
by eldiener
- 2 Replies
- Last post
by James Mark
- How does one check if a trivial eventy has any handlers When I try to say 'if (SomeTrivialEventMember)...' I am given compiler error C3918. This tells me the error can occur trying if I attempt to check a trivial event for null. But of course it does nto tell me how I do check a trivial event for handlers. I hate to think I must change a trivial event to one with specified add, remove, and raise m
-
- how to delete the excel file?
by Ajax24
- 2 Replies
- Last post
by Ajax24
- Hi,
how to delete an existing Excel file in VC++ , any functions to do so
like as we use app.Quit(); to quit the excel application after execution
anything like that to completly delete the whole file.
Regards,
-
- Facing a problem with editing a text file using C++
by Bassam72
- 9 Replies
- Last post
by Bassam72
- Dear all,
I am writing a network project that contains an error logging routine in a sequential text file. I am using native win32 C++ with Visual C++ 2005 express edition IDE on windows XP pro.
My problem is that whenever I try to open my log file the second time to add more log data somewhere (not appending) in the file, all the contents of the file will be changed to rubbish and unrea
-
- MessageBox in Win32 application
by ckymoose517
- 14 Replies
- Last post
by ckymoose517
- I am working an a project in the Win32 API. I can get everything running but when i do there is an error. i have a menu at that doesn't function quite yet, but i have a help menu option that has an option for about like most other windows applications. problem is i have it set right now just to show a messagebox with the name of the program till i can create a dialog box. the window "appears&
-
- Mixing native C++ and C++/CLI : LNK2028 and LNK2028 Erors
by Aurelien L.
- 6 Replies
- Last post
by Aurelien L.
- Hi I am developping a c++/CLI application witch call a c++ native fonction that need a SAFEARRAY** of custom struct for a parameter. I use UuidFromString to obtain a pointer to the GUID representing the custom struct. After i use SafeArrayCreateVectorEx with the pointer, SafeArrayAccessData memcpy_s to copy the data into the safearray and SafeArrayUnaccessData i have added Rpcrt4.lib, oleaut32.li
-
- How to add dialogs to my program?
by Roflcopter562076
- 7 Replies
- Last post
by Simple Samples
- Update: It won't even compile on my home PC. I get the following errors: ========================================================== e:\schoolcpp\CPP\ENCRYPT.CPP(15) : error C3861: 'clrscr': identifier not found e:\schoolcpp\CPP\ENCRYPT.CPP(26) : error C2065: 'apstring' : undeclared identifier e:\schoolcpp\CPP\ENCRYPT.CPP(26) : error C2146: syntax error : missing ';' before identifier 'openfile' e:
-
- VS 2005 / Isn;t this available in C++/CLI?
by Martin J. Kim
- 2 Replies
- Last post
by Martin J. Kim
- I want to implement FooDataReader Class by extending DbDataReader Interface. (This class is the one of the classes in ado.net data provider). The code is ....
FooDataReader Class
ref class FooDataReader sealed : public DbDataReader
{
...
// property
virtual property Object^ this[String^ name]
{
....
}
virtual property Object^ this[int index]
{
-
- help please!
by joelw7
- 5 Replies
- Last post
by einaros
- ok so far this is what ive got for my code im trying to figure out how to start my for loop that will receive the array and the int that represents the count(2) if anyone could help please im completley stumped. thanks in advance.
#include<iostream> using namespace std; struct Student { char Name[30]; floa
-
- Pointer dereferencing causes crash, only in Release mode, x86 Assembly related
by Celios
- 4 Replies
- Last post
by Celios
- Hi. My application reads a file and suddenly it crashes when executing an x86 assembly command. The assembly command dereferenced a word pointer and suddenly crashed. The error message from Windows is : The instruction at "0x00421121" referenced memory at "0x041db000". The memory could not be "read". The instruction is a simple one : movd mm3, [esi] where mm3 is used