all groups > visual c > november 2005
Filter by week: 1 2 3 4 5
help abou drawing a signal wave
Posted by Bad_Kid at 11/30/2005 8:42:52 PM
(c++) I have to present a wave which is stored in a file (int numbers, I
know sample's freq) on some kind of graph. I've never been using drawing in
c++.
Any suggestions, the easiest way to do that?
thanx...
... more >>
AddFontResource - help
Posted by Jim at 11/30/2005 3:38:43 PM
Hi,
I'm a total C++ neophyte, and we've got a short deadline to turn around.
Essentially, I need a utility that installs a series of fonts on a given
system, and I don't know whether the .NET runtime is installed on that
system, so I want something that will run w/o the .NET runtime, VB dll... more >>
Recording from microphone
Posted by Olaf Baeyens at 11/30/2005 2:18:41 PM
What is the best way to record from a microphone or line in in a unmanaged
C++ program?
I found a C# sample using DirectSound but we prefer an unmanaged C++ version
with no need of .NET.
Many thanks
Olaf
... more >>
A clr/pure application is like a good basketball shot because....
Posted by Peter Oliphant at 11/30/2005 8:35:23 AM
.....it's nothing but .NET... : )
[==P==]
... more >>
CArray changes in VC 2003 vs VC 6.0
Posted by danip at 11/30/2005 7:23:29 AM
Hi,
I used to have the following:
class CArchive
{
public:
// create and specify the filename to use
CArchive(CString filename, DWORD size);
virtual ~CArchive();
CArchive& operator<<(bool b);
CArchive& operator<<(BYTE by);
CArchive& operator<<(WORD w);
CArchive& operator<<(LONG l... more >>
How to repeat the mouse behavior?
Posted by Boki at 11/30/2005 12:00:00 AM
Hi All,
I want to repeat the mouse behavior from user.
I have an application ( Bluetooth ), I can drag files (Mp3/jpg/...) to the
bluetooth icon, and then choice the target device, finally, the applicatoin
will send those files to the target device.
Right now, I want this behav... more >>
Add a VC 6 library in a VC8 project
Posted by danip at 11/29/2005 11:52:45 PM
Hi,
Is it possible to add a VC++ 6 library ot a VC++ 8 application ? if yes
how ? is it possible to link a DLL ? how ?
-- Dani
... more >>
travelling salesman problem
Posted by Pohihihi at 11/29/2005 10:08:32 PM
Hello All,
I am looking for VC++ implementation of travelling salesman problem. My
project designer wants it not to have with branch and bound algorithm or any
genetic/nural algorithm. Any pointers?
Thanks,
Po
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
AutoCAD 2005 & VS2005 C++/CLR: fatal error C1001
Posted by ARF at 11/29/2005 2:50:03 PM
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting
fatal compiler errors.
I start with a default C++/CLR class library project and modify it by adding
the following references:
acdbmgd.dll
acmgd.dll
the entire source for the default library header file ... more >>
Multiple simulataneous forms in a sinlge application
Posted by Peter Oliphant at 11/29/2005 11:50:58 AM
How does one launch multiple forms in an application?
Using Photoshop as an example, this application seems to be composed of many
'disjoint' forms. Yet, they all seem somewhat 'active' in contrast to one of
them always being 'modal' (e.g., if you are moving over a picture the 'Info'
form w... more >>
References in VS2005
Posted by Slide-O-Mix at 11/29/2005 11:30:17 AM
I am currently converting a large solution from vs2k3 to vs2k5. The
conversion went smoothly, however I am getting a lot of warning about
duplicate imports of items in my Managed C++ projects. I removed all the
references and re-added them (they are to other projects in the solution),
but I ... more >>
Is There Any Reason to Even Use VC++ Anymore?
Posted by Greg at 11/29/2005 10:54:45 AM
Except for legacy or non-.NET applications, is there any reason to use VC++
anymore? It seems that for .NET applications, there would be no reason to
choose C++ over C# since C# is faster to develop with (i.e. no header files,
objects are easier to create and use, C# language is native to .NET... more >>
programming a service
Posted by brian_harris at 11/29/2005 8:55:41 AM
I am using MS Visual studio 2003 C++
I am tring to program my first service and am having many questions and
issues.
1) Is there any documentation/ book that has good examples with details on
how decsions where made in selecting various service options.
2)I would like to create a log file,... more >>
TRICK: Unique ID'ing
Posted by Peter Oliphant at 11/29/2005 7:20:48 AM
Sometimes it's hard to get straight when passing or storing or returning an
instance of a class whether you are still dealing with the original object
or a copy. For example, the '=' operator used on pointers to two instance of
a class can be overloaded to return the pointer to the target inst... more >>
Network aware application 'a la MSN'
Posted by Lloyd Dupont at 11/29/2005 12:00:00 AM
I'm about to write a network aware application.
Of course I intend to do UDP broadcasting to detect other app on my network.
But I would like my application to be usable over the internet as well.
Between to end user computer.
Ideally if user could connect through MSN identity that would be p... more >>
entering internationalized input
Posted by Lloyd Dupont at 11/29/2005 12:00:00 AM
I have implemented an international text editor based on uniscribe, GDI &
GDI+.
While it display internationalized text fine I realize user input are no
good.
So far what I do: I override Control.OnKeyPressed(char keyCode);
I was expecting the appropriate char to be passed on.
Now I test... more >>
Why do managed event handlers still use '&" ?
Posted by Peter Oliphant at 11/28/2005 2:22:07 PM
I've upgraded my code to VS C++.NET 2005 (Express) using /clr pure. My
question is, why is there an exception to the rule in how pointer syntax is
done in the event handlers?
For example, why is this proper syntax:
button->Click += gcnew EventHandler( this, &MyClass::MouseHandler ) ;
Th... more >>
Migrating VC 6 to VC 8
Posted by danip at 11/28/2005 6:12:54 AM
Hi there,
I need to do the following:
1. Migrate a whole solution (with tens of projects) from VC 6.0 to VC
8.0. The project has a lot of MFC templates like CArray, and many error
are poping out, like: Error 1 error C2248: 'CObject::operator =' :
cannot access private member declared in class '... more >>
VS.NET 2003: Where is class ios_base defined?!
Posted by Boris at 11/28/2005 1:01:15 AM
After including sstream the compiler reports hundreds of errors. They are
all caused by a missing ios_base definition. When I search for ios_base in
the installation directory of VS.NET 2003 I find only seven files with the
..cpp ending. So where is ios_base defined?!
Boris
... more >>
Iheritance
Posted by nick.stefanov NO[at]SPAM gmail.com at 11/26/2005 10:31:30 PM
I have an iherited child class in which I would like to have a variable
which uses the base(parent) class. Something like this:
class Child : public Base
{
public:
Child () : Base()
{
}
private:
MyClass *var1;
MyClass has a Base class variable and also uses the... more >>
gdi flickering
Posted by iwdu15 at 11/26/2005 7:19:01 PM
hi, i created a paint program for my c++ class using a global GraphicsPath
variable. i the, in the onpaint method, draw the line the users draws with
the mouse. simple. the only problem is that when i invalidate the panel im
drawing on in order to see the line, it flickers, even with double bu... more >>
Panel Painting ghost
Posted by Peteroid at 11/26/2005 5:32:35 PM
When the application I'm working on is run it creates a panel with a Paint
event customized to draw primitives (circles, rectangles, etc.), places the
panel on a form, and then launches the form.
The weird part is, the panel, in the instant it becomes visible, seems to
have an image of wha... more >>
using pin_ptr with a whole pointer
Posted by T Ray Humphrey at 11/26/2005 6:16:02 AM
I could not get the following code to compile:
public ref class wrapper
{
void Read(int^ mpLen)
{
pin_ptr<int> pLen = mpLen;
unmanaged* punman = new unmanaged();
punman->Read(pLen);
return;
}
}
The error was in the conversion from a managed poin... more >>
VC++ express Hall of Shame!
Posted by Lloyd Dupont at 11/26/2005 12:00:00 AM
it's only 2 hours I'm using it and I'm already mad from it's unproductivity
feature.
- my most hated feature being: you can't save your file (because it's used
by VC# express).
Very typicall after a failed build
there are minor ones as well kind of, such as:
- take 20 seconds to save a f... more >>
CTabCtrl FONT
Posted by mike east at 11/25/2005 10:47:02 PM
Greetings,
Am trying to change the font of a CTabCtrl I have in my Main Frame Window
(not a Dialog Box).
Since CTabCtrl is based in CWnd, I figured that SetFont() should work.
No luck. And there are no CTabCtrl member functions specifically for
changing the font.
My code looks l... more >>
Link error after converting from 6.0 to 2005
Posted by Michael Tissington at 11/25/2005 6:49:50 PM
After converting from 6.0 to 2005 when I try to Compile my project I'm
getting a LINK error
Error 1 fatal error LNK1181: cannot open input file " ?/.obj"
Any ideas how to fx this please ?
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
... more >>
Static member variables
Posted by Colin Desmond at 11/25/2005 2:50:09 PM
I have an MFC Extension DLL that I have flicked the /clr switch on and made a
few other tweaks so it compiles and runs in a managed MFC applicaiton.
The DLL contains a number of classes which contain static member variables
and static methods. Are these permitted in a managed DLL?
Thanks
... more >>
"object reference not set to an instance of an object"
Posted by jk at 11/25/2005 6:01:03 AM
Hi,
I'm trying to add an object to a checked listbox using VC++2005 Express.
I tries adding a managed String (String ^) and objects that implement their
own version of the ToString() method. I always get the same error message:
"object reference not set to an instance of an object". The ob... more >>
How to tell the SCM that a Service has failed?
Posted by Peter Steiner at 11/24/2005 9:16:13 AM
I have written a Service in C++ (VC8) derived from
System::ServiceProcess::ServiceBase.
In the OnStart() method I detect a service failure but the SCM reports that
the service started successfully. How can I tell the SCM that the service
failed?
I tried with SetServiceStatus(SERVICE_STOP... more >>
SCL streams and .NET FX
Posted by Herby at 11/24/2005 2:18:16 AM
Someone had suggested from an unmanaged application i can use SCL
streams to save data and read this same data into a managed application
using .NET FX.
Can you tell me what SCL streams are exactly?
And what exactly is .NET FX? Is this just a general term for the
framework classes?
Th... more >>
source code for %e, %f and %g?
Posted by Jonathan Wilson at 11/24/2005 12:00:00 AM
I can find source code in output.c for all the format specifications except
for the workings of %e, %f and %g (and also %E and %G).
Where is the source code for these functions?
If it is not included, does anyone know why not?... more >>
Saving/Loading a class instance to file
Posted by Peter Oliphant at 11/23/2005 3:34:45 PM
Trying to save/load a class instance to a file is tough. The reason is
because there is no way to preserve its type other than by conventon. For
eample, one can save all the states of the members of a class instance to a
file. But when loading it up the program can only read in the values stor... more >>
Basic Question About Moving From VC 6.0 to VC.NET 2003
Posted by matt.keyes NO[at]SPAM gmail.com at 11/23/2005 2:02:02 PM
Hi all,
If i compile my VC 6.0 code with the VC.NET 2003 compiler (unmanaged
C++), then can the compiled executable be run on a machine without the
..NET architecture?
Thanks!
... more >>
Crash on exiting managed MFC application
Posted by Al at 11/23/2005 1:19:15 PM
I have an MFC based application which uses remoting using VS05. On exiting
the application, I intermittently get a crash at line 195 in dllmodul.cpp
(AFX_MANAGE_STATE(&afxModuleState);)
The exception I see in the IDE is "Unhandled exception at 0x7c81eb33 in
MgmtApp.exe: 0xC0020001: The stri... more >>
using pinvoke to fill a string
Posted by brian_harris at 11/23/2005 12:56:08 PM
I have a 3rd party unmanged .dll. This has functions that will look up
information and fill a C string passed to it with data. I want to use this
data in .NET classes after it has been filled and I am programming in C++. I
believe that I should use pinvoke, but I see a problem that I can't f... more >>
vcproj file and MS build?
Posted by Pavel A. at 11/23/2005 10:19:03 AM
Can anybody shed some light... Confused here :((
Isn't VS.2005 supposed to use the new build system, that can be invoked
separately from the IDE?
If yes, why it creates vcproj files? Are these files compatible
with msbuild? Or, can they be exported to the build?
Regards,
--PA
... more >>
Interface to Access 2000 Database
Posted by Eitan at 11/23/2005 8:58:07 AM
Hello,
What is the easiest way to interface, from MFC, and Access 2000 database?
Eitan... more >>
CAtlRegExp so limited?
Posted by ricardo rodrigez at 11/23/2005 3:31:03 AM
I don't manage to use the instance number meta-character brace in ATL regular
expressions.
For instance :
\d{5} meaning 5 digits fails with '01234'
or
a{3} meaning i want three 'a' fails with 'aaa'
I cannot believe that we cannot make it with this ATL routine, that's so
basic I must... more >>
STL.NET serialization
Posted by Herby at 11/23/2005 3:07:16 AM
This is a follow on from my previous thread about clr/safe and STL.NET
http://groups.google.com/group/microsoft.public.dotnet.languages.vc/browse_thread/thread/0eb9b25a83bc02df/b170a89dbc67c332#b170a89dbc67c332
A more specific problem now is migrating the current MFC serialization
onto STL se... more >>
Visual C++ Projects in Visual Studio
Posted by anonymous.post NO[at]SPAM www.wwwcoder.com/main, at 11/23/2005 12:00:00 AM
I have a Visual C++ Project (a C++ dynamic DLL) in Visual Studio 2003
NET. I want to use for example the _beginthreadex() function, but I
cannot compile my code. The compiler breaks up with the message :
'_beginthreadex': identifier not found, even with argument dependent
lookup
I added the... more >>
Generate Interface
Posted by diehard2 at 11/22/2005 8:07:04 PM
Hello everyone,
I'm trying to implement an interface. I import the reference of the COM
library and I set up my class like
namespace testing
{
public __gc class Class1 : public IMeedioPlugin
now, in C# after I finish typing IMeedioPlugin it say something along the
lines of pr... more >>
std::map<std::string, std::string> produces complie errors Managed C++ Class Library
Posted by Maxwell at 11/22/2005 3:56:47 PM
Hello,
I having having oodles of trouble using the std lib in my MC++ (VS.NET
2003) Class library. I figured out a simple sample to reproduce the
errors I am having. Create a MC++ (VS.NET 2003) class library and type
in the following code below:
#include <map>
#include<string>
using std... more >>
Closing via Console generates non-zero exit code
Posted by Peter Oliphant at 11/22/2005 2:37:14 PM
I have a C++ Console application being written using VS C++.NET 2005
Express. It never crashes and seems to be working just fine.
However, when I close the application via the Console 'X' exit button in
upper right corner of its dialog box I get the following exit code:
"The program '[1576... more >>
gcroot use and clean up?
Posted by Maxwell at 11/22/2005 10:10:23 AM
Hello,
Im using MC++ VS.NET 2003 and am quite confused with with gcroot
template and its use. The issue I am confused about is the need to (or
not) delete a pointer to a managed object that you have created using
gcroot. For example(from Managed VC++ 2003 Step by Step by Microsoft
Press p510)... more >>
[VC 2k5] Q:Copying From unmanaged pointer into managed arrary, How?
Posted by Marauderz at 11/22/2005 10:04:52 AM
Hi there,
Got a quick question, I have an app that I'm compiling with /clr and I have
a native function that passes in a pointer, and I need to copy from that
unmanaged memory into a managed Byte array but I can't quite figure out how
to properly cast everything, here's what I have right n... more >>
Splitting double into integers
Posted by H.B. at 11/22/2005 6:50:17 AM
Hi,
How can I split Double into two integers like the following example :
2.34 -> 2 and 34 (I dont want the modf() result that gives 2 and 0.34)
Hugo... more >>
Memory allocation performance problems vs .net
Posted by EasyKev at 11/22/2005 6:01:02 AM
We have been trying to upgrade all our C++ projects from VC6 to VS .Net2003
for a while (before VS 2005 arrived), and seem to be stuck now because of the
performance degradation seen for the same code when compiled by the new
compiler compared to being compiled by VC 6 compiler.
Originally w... more >>
Compiler bug in Visual C++ 2005
Posted by syntheticpp NO[at]SPAM yahoo.com at 11/22/2005 4:24:40 AM
Hello,
there is a bug in the compiler of Visual C++ 2005/14.00.50727.42
(also 13.10.3077).
This code compiles but must not compile:
#include <string>
namespace n {
using namespace std;
template<class T>
struct s{};
}
void f() {
string str;
}
When commenting o... more >>
The binding handle is invalid.
Posted by Colin Desmond at 11/22/2005 3:16:19 AM
I have a COM component that performs logging in a managed MFC application.
The main body of the application is built using /clr, as are all of the MFC
and regular DLL's. The COM componet is not built using /clr.
When I make a call into the COM object from a "normal" C++ class (compiled
with... more >>
Can't get VS editor to indent case labels (set to Emacs)
Posted by _DG at 11/21/2005 11:37:35 PM
Re VS2005 editor in Emacs mode (options->env->keyboard mapping)
First of all, there are very few editor options for formatting C/C++
code. Only three option pages. C# has about 10, I believe.
Why are there no C++ equivalents to C#'s detailed formatting options?
In the following code block,... more >>
|