-
- Where is my link ???
by ___OTO1978___
- 7 Replies
- Last post
by Bite Qiu - MSFT
- Hi all,
I am currently having problem in linking my project. I use VS2003. I changed some settings in the debug configuration, and when I choose to build my project, only the compilation stage is done (works great with no warnings or errors). Indeed, the link is never done. In release configuration, everything goes fine.
I might have changed some option, but I do not know which one.
-
- Assertion in isctype.c
by Kishore_83
- 1 Replies
- Last post
by Jonathan Caves - MSFT
- HI,
I am getting an assertion in isctype.c saying for expression (unsigned) c <=256 what could be the reason Kishore
-
- how to write to a serial port
by lovneet
- 4 Replies
- Last post
by lovneet
- hey! m working on a code where in i have to write to a board. the system and the board are connected via UART. m using VC++. the problem is that the moment i try to write something the system hangs, the system is compiling though. here is a part of the code - void CserialportthingieDlg:: OnBnClickedWrite() { UpdateData(TRUE); size_t size; size = strlen(m_sshwwrite);//m_sshwwrite is he variable ass
-
- LNK2001 error when using an ATL project.
by Cederron
- 2 Replies
- Last post
by Cederron
- Hello all,
I have built an ATL project called 'MIM' wich has a few ATL simple objects in there and works fine, now I'm writing another project called MIMControls wich has an ATL simple object that derives from an object in MIM ( I'm trying to do code reuse like in this article: http://vcfaq.mvps.org/com/8.htm ).
The problem is I get linker errors:
Linking...
Creating library
-
- Proting a project form vc1.5 to cv6
by Raju
- 9 Replies
- Last post
by Holger Grund
- Hi all,
i have a project developed using vc1.5, now i want to port that project in to vc 6. i have opened .mak file in vc6, and try to compile, then i got an error
Compiling...
Command line error D2016 : '/ZI' and '/Ob2' command-line options are incompatible
can any one hep me.
thanks,
raju.
-
- Question on Automating Word Passing Parameters
by Brades
- 5 Replies
- Last post
by Sahir Shah
- I would like to know if it is possible to create an instance of Word and pass the "-a" parameter/switch (Start Word and prevent add-ins ) CDispatch oWord; try { CP(_T("GenerateWithWord ------> Attempting to create Word Application")); oWord.CreateInstance("Word.Application"); } catch (...) { CP(_T("GenerateWithWord ------> Unhandled Exception occurred!&quo
-
- Checkbox List
by WebDev2000
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hello All,
I have a requiremnt to store and display work schedule for the week.
Some location are open only 3 days, some are open 5 and some are open 7 days a week.
Current data is in the below format (Assuiming week starts on Sunday and ends of Saturday)
1-Sun
2-Mon
3-Tue
4-Wed
5-Thurs
6-Fri
7-Sat
For location open Monday and Tuesday
2,3
For the one
-
- Identifcation and access of variables from strings
by BoatProg
- 14 Replies
- Last post
by BoatProg
- I am writing a model of a sailing boat using Visual C++.
Principal output from the model is a set of graphs of selected model variables against time. The required model variables are identified in a set of edit boxes, filled in by the user prior to running.
In the Code, how can I use the strings in the edit boxes to access the required model variables at run time
-
- How to create ListView with Option buttons?
by Machhindra
- 6 Replies
- Last post
by Machhindra
- I have listview control in Dialog based MFC application (VC++ - VS 2005). I have populated multiple rows of data in the ListView control running in report mode.
There are three mutually exclusive choices for each row. User can select one of the choice. e.g Convert/ Delete / Skip. How would I provide these choices to the user
One approch could be - Display two option buttons for each
-
- Context Menu
by Adarsh Menon
- 4 Replies
- Last post
by Adarsh Menon
- How do i create a Context Menu & add List Items to it using VC++ MFC
-
- After installing VS 2005 SP1 the debugger doesn't show MFC source files
by orlop
- 4 Replies
- Last post
by orlop
- Having installed Visual Studio 2005 SP1 and rebuilt all my C++ projects I find that I no longer have source-level debugging available for the ATL MFC classes. Is there a fix for this If not I'll have to consider reverting to the original setup.
-
- [URGENT] nmake serious problem building qt mysql plugin - possible nmake bug [URGENT]
by MarkoSan
- 2 Replies
- Last post
by MarkoSan
- I've installed qt 4.2.1 commercial with MS Visual Stdudio 2005 Professional. I applied Service Pack 1 and KB930895 patch to avoid qt application compile problems. Now I want to build mysql plugin to access mysql database, which is foundation of my application. In MS VS GUI, application compiles without problems, but when i try to build mysql plugin with: qmake -o Makefile "INCLUDEPATH+=c:\Pro
-
- Member of class
by Youkoulele
- 3 Replies
- Last post
by Simple Samples
- Hello everybody, I am kind of new with c++ and I am having trouble with class member. can someone could show me the principle of accessing member of class. What I try to do is: Look at the exemple below. in Test.h: class : Test { public: function1(); function2(); }; in Test.cpp function1() { ............... ............... } in Test2.h: #include "Test.h" class : Test2 { pub
-
- Moving files with SHFileOperation
by araneh
- 5 Replies
- Last post
by Sheng Jiang (?κΙ)
- Hi!
I would like to use SHFileOperation to move all files in a folder to another . I'm able to specify a file and move it to another folder but I can't move a group of files.
I know the problem is in pFrom and pTo. This is what I have written:
SHFILEOPSTRUCT fileop;
fileop.hwnd = NULL;
fileop.wFunc = FO_MOVE;
fileop.pFrom = "..\\temp\\*.*\0";
fileop.pTo
-
- cannot convert parameter 1 from 'cli::array<Type> ^*' to 'System::Object ^%'
by Ha Duo
- 4 Replies
- Last post
by TilakGopi
- Hi I have the following code. The method will is declared as int __stdcall GrCapRawImageToHandle(unsigned char* rawImage, unsigned int width, unsigned int height, HDC hdc, HBITMAP &handle); I think that is old syntax style and i have use that in my code in VisualStudio 2005 System::Drawing::Image ^handle; Graphics ^g= btn_startCap->CreateGraphics(); IntPtr hdc = g->GetHdc();
-
- Timer calling a non-static function?
by Franapoli
- 5 Replies
- Last post
by Franapoli
- Hi all.
The documentation of VC++ brings an example on how to set a timer in order to have it call a static method. What if I need to have it call a non-static one Of course, just deleting the keyword "static" didn't work...
Thank you in advance, Francesco.
-
- writing log file
by HK_president
- 1 Replies
- Last post
by Sarath.
- Dear all,
I've developed a TCP server, which accepts multiple TCP connections from the clients. My program will do the steps as follows:
1. TCP server listen to the incoming tcp request
2. Once a request is accepted, the server will fork a task to process the request from the client
3. The new process will handle the request and write the result to the log file
Multiple pro
-
- is it possible to disable linker warnings?
by stinosky
- 6 Replies
- Last post
by stinosky
- just wondering, is it possible to disable linker warnings in code, as you can with the warning pragma for compiler warnings
-
- Add Method Wizard in VS 2005
by Mahesh Bakshi
- 1 Replies
- Last post
by Mahesh Bakshi
- The following link of MSDN shows how to add a method in VS 2005 to ActiveX control.
http://msdn2.microsoft.com/en-us/library/95357zak(VS.80).aspx
Which says we have to follow following steps to add method in ActiveX:
1. Load the control's project.
2. In Class View, expand the library node of your control.
3. Right-click the interface node f
-
- application releasing - no installation
by bucz
- 14 Replies
- Last post
by Bite Qiu - MSFT
- I would like to make a release version of my application, but I want to avoid making an installation package. I would like this program (not a big one) to run just after downloading and running, so single exe with all libraries would be the best. When an instalation package is created, I also must be logged as an admin to run it and it is also not convinient. How to solve that I am using win XP bu
-
- FILETIME to System::DateTime
by positive
- 7 Replies
- Last post
by positive
- Hi I have a FILETIME structure from an ftp call with wininet and I need to convert it to System: ateTime format in order to compare these times. Right now I have this code for that:
Code Snippet
FILETIME ft = find_data.ftLastWriteTime; DateTime last_write = DateTime::FromFileTimeUtc(((long)ft.dwHighDateTime) << 32) | ft.dwLowDateTime); It compiles with one warning about the
-
- Application stopped running in other computers - Please help
by Marsze
- 9 Replies
- Last post
by Marsze
- Hi I'm writing a form application in Visual C++ Express. Earlier versions of the application were running fine in other computers, given they installed the DotNet and the VC runtime libraries.
After making some changes, the application is failing to start in other computers, producing the following error: "the application has failed to start because the application configuration is incorre
-
- Custom Build Step's "Additional Dependencies" Aren't Dependencies
by makefile
- 2 Replies
- Last post
by Bite Qiu - MSFT
- Follow these steps for optimal sadness:
Make a custom build step.
Under its Additional Dependencies, type gibberish. The more, the better.
Build.
Watch your custom build step execute, despite the fact that none of its dependencies are present.
Lament your inability to fix this bug yourself, given that MSVS's source isn't open.
Post bug to Microsoft's forums, hoping they'll issue a
-
- Running out of resources
by Jeff Reid
- 14 Replies
- Last post
by markmo
- I wrote a program that copies all the files and directories from a volume (or directory) to another directory. It doesn't appear to be leaking any resources, but it stopped one time and I couldn't open up any other windows. I ran it again under XP X64 and it ran OK.
I reran it again under 32 bit XP and it ran OK, so I'm not sure what went wrong.
-
- Inexplicable bug using 'generics' in C++/CLI
by eldiener
- 14 Replies
- Last post
by eldiener
- I have run into a bug in the C++/CLI support for 'generics', which is inexplicable to me. The bug may also occur in C#, but I am writing in C++/CLI and have not tested it in C# so I will post it here. The bug involves creating generic delegates, generic classes, and generic static functions, all of which refer to each other using generics, without being instantiated with any types yet. In other wo