all groups > visual c > august 2005 > threads for august 8 - 14, 2005
Filter by week: 1 2 3 4 5
linking errors
Posted by rich at 8/14/2005 10:19:08 PM
Hi there,
I've been working with dynamic libraries for a quite big software and now
and then I may get some weird linking errors, like following
MSVCRTD.lib(MSVCR71D.dll) : error LNK2005: _fprintf already defined in
libcmtd.lib(fprintf.obj)
MSVCRTD.lib(MSVCR71D.dll) : error LNK2005: _swpr... more >>
c++ code ending up in form.h file
Posted by Peted at 8/14/2005 12:00:00 AM
Hi
i am relatively new to the c++ visual studio.net 2003/2005 evniroment.
I am wondering why all the c++ code for winforms apps are being placed
in a .h file. Isnt this against c++ coding convention ?
I understanding it makes no functional difference to the end result,
but arent .h files... more >>
String & ASCII code
Posted by Nigel Sypouo at 8/12/2005 10:53:04 AM
Hello,
I've just started programming with C++, and I'm looking for a way (function)
to convert numbers (int,float or double) into ASCII.
Thanks... more >>
Completion port & winsock problem.
Posted by Nadav at 8/12/2005 10:34:06 AM
Hi,
Introduction:
*************************
I am developing communication infrastructure for a streaming video server,
to achieve optimal performance I use IO Completion ports & a thread pool in
combination with winsock MsAPI ( e.g. ConnectEx, AcceptEx, … ), sending data
through sockets... more >>
Strange behaviour in VC 7.1
Posted by Alfonso Morra at 8/11/2005 10:17:42 PM
Hi,
I have written a simple test harness (exe) for a C++ (native) DLL that
exports some C++ objects. The objects throw exceptions when they an
error occurs in the Ctor, and the test harness is supposed to catch the
exception.
I have noticed that when I am debugging the DLL (i.e. using th... more >>
Debuging a dll - How?
Posted by Alfonso Morra at 8/11/2005 12:20:09 PM
Hi,
I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.
I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:
... more >>
error C2065/error C3861: 'm_nBackStyle': identifier not found, eve
Posted by VicVic at 8/11/2005 10:16:04 AM
Hello,
I have an old project, built with VC++. Now need to be compiled
in Visual Studio .Net 2003.
The project is going to build a DLL.
When i try to compile the project, i got the following errors:
c:\thepath\aaa.cpp(890): error C2065: 'm_nBackStyle' : undeclared identifier
c:\thepath\... more >>
calling the base destructor.
Posted by Lloyd Dupont at 8/11/2005 12:00:00 AM
I create 2 ManagedC++ class inherithing from each other.
I can't see how do I call super destructor or ensure it's called :-/
template <class T>
public ref class CArray : System::IDisposable
{
protected:
~CArray()
{
if( ptr ) // I'm not sure of what IDisposabl... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to convert managed char array to unmanaged char*?
Posted by joye at 8/11/2005 12:00:00 AM
Hello ,
I meet some data convertion problem, the sample code as following,
namespace Configure
{
using namespace System ;
typedef struct _SW{
char szVersion[64] ;
} SW,*PSW ;
public __gc class Config{
public :
SW m_sw ;
public :
Config(char *szVersion)
{
Config __pin *This... more >>
(plain) GDI (not GDI+) scaling question
Posted by Lloyd Dupont at 8/11/2005 12:00:00 AM
I want to mix Uniscribe with GDI+.
Unfortunately, if I want to render Glyph per Glyph I have to use
ScriptTextOut which uses an HDC.
So I would like to know if there was a way to apply coordinate
transformation to HDC the same way you could Apply a Matrix to a Graphics
object?
I remembe... more >>
going through mscorwrk.dll
Posted by Ian Lazarus at 8/11/2005 12:00:00 AM
Greetings,
std::wstring s(L"hello world");
wchar_t c(L'x');
size_t i = s.find(c);
The assembly view of the above code shows that the call to s.find() is
actually a call into mscorwrk.dll which then calls the basic_string template
find() code. Why is it going through mscorwrk.... more >>
explicitly loaded dlls, virtual functions and templates :(
Posted by Vyacheslav Lanovets at 8/10/2005 11:47:42 PM
Hello, All!
One of our target platforms has only 32 MB of virtual memory (Windows CE),
so we decided to explicitly load some of our dlls.
But the classes created inside such dlls are created with vfptr pointed to
address space of the dll. So when DLL is unloaded vtable is destroyed.
The... more >>
Will VC++ 2005 implement switch with case int::typeid in the final release?
Posted by nobody at 8/10/2005 5:53:34 PM
With Visual C++ 2005 beta 2, I get the below compling error for the
following code. I think this error is not acceptable to me because
int::typeid is a constant and is known to compiler when compiling. Will VC++
2005 implement switch with case int::typeid in the final release?
error C2450: ... more >>
Language Advice
Posted by Eddie Paz at 8/10/2005 4:13:36 PM
I have a program written in MFC. I'm at the point where I need to start
working on the major release (tons of new features needed - new fiscal year
budget and all-).
I'm looking into vc++.net since I figure that I need to buy the bullet
already and get into the .net thing. I'm concerned, howev... more >>
compiling error,
Posted by VicVic at 8/10/2005 3:59:01 PM
Dear Experts,
I have a project, built long time ago, using VC++. Now i want to compile it
in Microsoft Visual Studio .Net 2003. When i tried to open the project
file(xxx.dsw), i was asked:
------
The project 'xxxx.dsp' must be converted to the current Visual C++ project
format. After it h... more >>
Linear equation solving method for rare matrices.
Posted by Anatoly at 8/10/2005 3:22:03 AM
Hi All !!!
Can anyone give me link to the C++ source or to the compiled program unit
(compatible with Microsoft VC++), designed for the solving of the algebraic
linear systems with rare matrices ? The main problem is next: the main rare
matrix of the system is in the common form, but not in... more >>
To open IE using VC++ .net
Posted by Shaby at 8/9/2005 10:07:02 PM
Can u help me to design and code a button that can open IE with only one
"Default Web Site". This enhancement I want to do for VC++.net application
that is multithreaded and using win32 interface.... more >>
LIBCD.lib...what does it do?
Posted by Kay at 8/9/2005 4:42:50 PM
Hi, All:
I have to use two packages from other people. One uses LIBCD.lib, one has to
ignore LIBCD.lib. So now I can't build successfully. Any idea what I should
do?
thanks,
-Kay
... more >>
include header problem (I'm using VS.NET 2005 beta2)
Posted by Lloyd Dupont at 8/9/2005 12:00:00 AM
I'm trying to use GDI+
fisrt it tooks me 1/2 an hour to realize that
#include <GdiPlus.h>
was failing SILENTLY
as a matter of fact
#include <kgdsfjrehgkjrehglierdjhglkrdhgkjfdhgdehjkrefhkj>
fails silently as well!
I'm using a default ManagedC++ template what kind of stupid default option ... more >>
what's wrong?
Posted by Jason Felix at 8/9/2005 12:00:00 AM
#include<iostream>
using namespace std;
class MyClass{
public:
int x;
MyClass(int i);
}
MyClass::MyClass(int i){
x=i;
}
int main(){
MyClass ob(5);
cout<<ob.x<<"\n";
return 0;
}
... more >>
VC7.1 new project question
Posted by Alfonso Morra at 8/9/2005 12:00:00 AM
Hi,
Does anyone know the efect (if any) of choosing a platform of type
Active(Win32) as opposed to plain Win32 when creating a new C++ (native)
project?
Thanks
... more >>
GetWindowRect function
Posted by dipak22101980 at 8/9/2005 12:00:00 AM
HI,
below is a piece of code.
HWND hVWnd;
RECT rRect;
GetWindowRect(hVWnd,&rRect);
diff_val = rRect.bottom-rRect.top;
If on starting a application if my window is minimized then value o
rRect.top and
rRect.bottom is -32000.
Is it a garbage value or any valid error code?
Onc... more >>
GDI+ problem
Posted by Lloyd Dupont at 8/9/2005 12:00:00 AM
I'm working in ManagedC++
In the OnPaint of my control I get a System::Drawing::Graphics object to
which I apply some transformation (Scaling, smoothing mode, clipping and so
on).
Later on I need to call a function of the #include <GdiPlusFlat.h> API.
How do I get a "GpGraphics*" from a... more >>
gdiplusflat.h ?!?!
Posted by Lloyd Dupont at 8/9/2005 12:00:00 AM
In my managed C++ code I would like to call the GDI+ text function directly.
I'm refering to this document:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdicpp/GDIPlus/GDIPlusreference/flatapi.asp
Which tolds me about a <gdiplusflat.h> header.
However, although I have VS.NE... more >>
beginner question about auto_ptr
Posted by Lloyd Dupont at 8/8/2005 12:00:00 AM
I try to use the auto_ptr in my code but that doesn't work.
even std::auto_ptr.
I guess I have to add an #include statement, but I can't figure out the
right file to add.
Also I want to use auto_ptr not to manage a single int but and int array.
something like
std::auto_ptr<int> adv = new in... more >>
how to use generic?
Posted by Lloyd Dupont at 8/8/2005 12:00:00 AM
due to cross reference I need to separate declaration and implementation.
in my header I have something like that:
--StyledRange.h--
generic <class T> ref class StyledRange;
generic <class T> public ref class StyledItem
{
StyledItem(StyledRange<T>^ r, int pos, int len);
}
--StyledR... more >>
|