all groups > visual c > december 2004
Filter by week: 1 2 3 4 5
std::string in "STL .NET"
Posted by Ioannis Vranos at 12/31/2004 2:35:30 PM
Will "STL .NET" of VS 2005 include a fully managed std::string?
--
Ioannis Vranos... more >>
Deleting a structure
Posted by Peter Schmitz at 12/31/2004 2:39:02 AM
Hi again,
I've defined the following structure:
typedef struct _MYSTRUCT{
CTypedPtrArray<CPtrArray,SECSTRUCT*> a;
CTypedPtrArray<CPtrArray,SECSTRUCT*> b;
BYTE d;
BOOL c;
USHORT e;
}MYSTRUCT,*PMYSTRUCT;
Additionally, there's a CTypedPtrArray<CPtrArray,MYSTRUC... more >>
vc6 and vb.net
Posted by john andrew at 12/31/2004 12:15:02 AM
--
hello
can you run VC6 programs with vc.net
unmangaed code and apps with and without MFC
thanks... more >>
no MC++ form designer in VC++ 2002?
Posted by tsmith at 12/30/2004 6:31:15 PM
Am I correct that VC++ 2002 doesn't have a form designer with Managed c++?
Is there any way I can get it working for 2002--an update or something? I
don't want to upgrade to 2003 with 2005 right around the corner.
... more >>
raw device
Posted by bill at 12/30/2004 4:46:30 PM
I am looking for a way to mount a USB disc drive as a raw device. Where I
could access data with sector seeks. Is there a way to do this?
Bill
... more >>
msxml sample compilation
Posted by Senthil at 12/30/2004 2:11:01 PM
I installed the MSXML 4.0 sp2 and wanted to play around with DOM using C++
and followed the instructions on "Program with DOM in C/C++" section in the
MSXML SDK. The compilation fails in Visual Studio .NET 2003 with the
following error message
"c:\Code\C++\Projects\TrivialProj\loadDOMRaw... more >>
mixing managed and unmanaged code
Posted by tsmith at 12/29/2004 6:32:53 PM
Hello,
Quick question: Can I mix managed C++ (forms and GUI stuff) with nonmanaged
C++ code (Direct3D). Note that I am not interested in managed DX (the C#
API). I still am writing C++ code, but would like to use the .NET GUI
library with managed C++, and unmanaged DX code. Is this possible... more >>
windows.h
Posted by Steve Holle at 12/29/2004 10:59:03 AM
I'm trying to compile an existing program and I can't seem to find the
"windows.h" file. Where can I get this?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ayuda
Posted by alex,ocoro at 12/29/2004 3:29:07 AM
hola,necesito que me ayuden: necesito un ejemplo de constructores y
destructores
... more >>
Error in reading Console
Posted by Amrro at 12/28/2004 4:35:59 PM
Hi,
I am trying to use a old written code by one of my senior, It is a console
application to append two files. I need to make some necessary changes in
the application, but when I try to write Console::ReadLine(), its throwing
some error
d:\Projects\myappend\append.cpp(252): error C2653: '... more >>
Do you .NET framework to run a C++2005 application?
Posted by Johnny at 12/28/2004 2:07:04 PM
I am curious to find out whether the .NET framework is actually needed to run
a C++ 2005 application. I know in other languages such as C# and VB.NET, it
is a must or else it wont run, but for some reason I get the feeling this is
not the case (at least not all the time) with C++.NET.
Also... more >>
HELP!!!!
Posted by jenlin26 NO[at]SPAM yahoo.com-dot-sg.no-spam.invalid at 12/27/2004 9:56:05 PM
Hi, i trying to do a project which need to link the GUI interface with
the functions using c++.
Is there anybody out there can help me? If can, can send the source
code to me as well. Thanks Alot....
*-----------------------*
Posted at:
www.GroupSrv.com
*----------------------... more >>
ATL Server future regarding the WS-*
Posted by sygnosys NO[at]SPAM gmail.com at 12/27/2004 2:51:57 PM
Hello,
With the advent of all work being performed regarding the WS-*
standards, some of them already implemented in the .NET platform with
the release of WS 2.0.
Since my Web Services platform of choice is the ATL Server libraries I
would like to know what is the future plans regarging these n... more >>
Convert "char" into "string" in java
Posted by privetv7 at 12/27/2004 1:27:29 PM
ppl... HELP!!!!!
i don't know how to convert String into char.....
for example i can do
String input;
int number;
input = JOptionPane.showInputDialog( "Enter what ever" );
number = Integer.parseInt(input);
--
privetv7
-------------------------------------------------------------------... more >>
RAM used goes crazy with Dllimport ?
Posted by Brian Anderson at 12/26/2004 9:49:06 PM
Hello,
I have a native, C++ console app that uses ~26MB of RAM when it runs.
It uses quite a lot of RAM to make some math but will never xceed 26MB.
Now I've made a dll out of this code and use it with DllImport in a C#
console application.
Basically I just access main() and pass my parame... more >>
Re-directing 'cout' to a text file
Posted by Peteroid at 12/25/2004 2:50:17 PM
I'm doing a managed C++ application. Is there a way to re-direct 'cout' to
output destinations other than the 'black console' that comes up?
Specifically, re-direction to a text file?
Thanks in advance! : )
[==Peteroid==]
... more >>
Changing the current directory with the help of dialog window(MFC
Posted by Alur at 12/24/2004 11:39:01 AM
Changing the current directory with the help of dialog window(MFC app)
We can change directory with the help of the following code:
CFileDialog m_ldFile(TRUE);
m_ldFile.m_ofn.lpstrInitialDir="c:\\"; // the initial folder.
//below the dialog window is opened, then tfolders and eventually a ... more >>
debug error occured while use exit(0) statemnt on click menu
Posted by Alex Lu at 12/24/2004 11:05:41 AM
Hi,
I am new to vc++.net programming ,while I use exit(0) statement on
button click event , it is OK,
but when I use exit(0) statement on menu click event, there will be a debug
error,could anybody tell
me why?
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugB... more >>
game programming
Posted by john andrew at 12/24/2004 12:19:02 AM
--
hello
If I wanted to do some game programming with C++ and openGL/directx do I
need to know MFC /VCL . Can I just know C++ and bypass these extras and use
just C++ with added libraries, no GUI ?
... more >>
class pointers
Posted by john andrew at 12/23/2004 9:41:01 PM
--
hello
I am a little rustry with C++, when you declare a class method with a pointer
eg...unsigned char *CTexture::LoadBitmapFile(char *fi....
what does this mean again, is this method of a class pointer?which is?
thanks... more >>
How to add a menu?
Posted by ShipHead at 12/23/2004 8:13:23 PM
I've created a MFC C++ dialog application... I've created a menu
but can't seem to remember how to add the menu to the dialog.
Help?
TIA.
... more >>
help with simple combobox problem in Visual C++
Posted by dt at 12/23/2004 6:21:02 PM
hello, I'm still new to win32 programming and I have a small problem. I am
making a simple application. The main GUI is a dialog box with check boxes,
radio buttons, combo boxes etc.
The problem I'm having is that I have two combo boxes (both dropdown). One
of them works fine; when you c... more >>
VC6 VC7 STL container size difference problem
Posted by Faisal Mansoor at 12/23/2004 2:36:27 PM
Hello all
We have just switched all our applications to VC7 but we are facing a
problem due to change in the size of stl containers.
VC7
sizeof(vector<string>) = 28
sizeof(string) = 28
sizeof(map<string,string> = 12
VC6
sizeof(vector<string>) = 16
sizeof(string) = 16
sizeof(map<s... more >>
Interoperability dilema
Posted by Mr.Baha at 12/23/2004 12:38:25 PM
I have a situation where I want to consume VC++ code that someone else
has written. This C++ code compiles into a console app exe, and I have
all of it's source code. For the record, this app listens to a comm
port for a stream of proprietary data it is expecting.
What I want to do with it is... more >>
[newbie] _lfind syntax problem
Posted by Peter Schmitz at 12/23/2004 8:09:02 AM
Hi again,
this time, I want to do some binary searching. Therefore I have declared the
following:
BYTE *buffer; //holds pointer to data to search in
UINT bufferlen; //length in bytes of buffer
BYTE *pattern; //holds pointer to pattern to search for
UINT patternlen; //length of pattern... more >>
General questions
Posted by Peter Schmitz at 12/23/2004 12:31:02 AM
Hi again,
I was just wondering: My current project consists of two Dlls - one grabs
lots of data out of e.g. files and passes it sequentially two a second Dll
which handles the data (e.g. searches for specific binary patterns).
Now, I have to questions:
1. Does the fact that the whole r... more >>
templates, C++, and LNK2019
Posted by Chris Burrger via .NET 247 at 12/22/2004 4:03:20 PM
I've found some other posts that deal with this linker error, but none of those solutions work for me. I just got VS.NET 2003 and I wanted to try it our with some basic algorithms. I am trying to make a singly linked list, using templates.
I?ll post my code and then the error message at the end.
... more >>
error LNK2019: unresolved external symbol "unsigned char __stdcall
Posted by naveena pagudala via .NET 247 at 12/22/2004 4:02:19 PM
(Type your message here)
--------------------------------
From: naveena pagudala
I am trying to implement some code in power managment capabailites in xp using visual studio. net
The program uses powerprof.h and powerprof.lib.
When i build the program i am getting this error?
The include a... more >>
How to access web service
Posted by raghavendra raju via .NET 247 at 12/22/2004 4:01:08 PM
I am trying to call a web service client in C++. I get the URL for the webservice at the runtime from the config file.
I need to dynamically create a webservice client object and call the method in the web service.
Please let me know if this is possible.
--------------------------------
From... more >>
Problem in Reading string
Posted by Amrro at 12/22/2004 12:13:49 PM
Hi
I am using VC++.NET, I have a string
c:\folder1;c:\folder2;c:\folder3
I want to sepreate this string into a array of string which should contain
c:\folder1
c:\folder2
c:\folder3
Please Help me.
Amrro
... more >>
Fast linked list
Posted by Peter Schmitz at 12/22/2004 11:47:04 AM
Hi,
for my current application, I need a linked list in which I can access and
walk through at highest speed possible - adding/deleting/inserting elements
can be as slow as necessary. Now, which template out of the C/C++ standard
library should I use for this - std::list? Or is there a bett... more >>
How to make OLE Automation Server exit right away after registrati
Posted by Dave at 12/22/2004 11:43:08 AM
I am creating the setup for the .NET project.
The project contains several OLE Automation Servers (.exe)
I am having troubles toadd required registration information
for these servers to the registry during setup. I explored
a few options:
1) I was trying to create required registry entries m... more >>
ATL EXE doesn't appear in Task Manager Applications View
Posted by ramialhasan at 12/22/2004 1:29:44 AM
I got used to use VB ACTIVEX EXEs and when using the compiled EXE and
instantiate it the EXE name appears on both tabs of Task
Manager(Applications and Processes). But when using the ATL EXE
produced by ATL .NET (unmanaged) I can see the application name in the
Processes tab only, and the it is ... more >>
NewBie Doubt
Posted by Amrro at 12/21/2004 10:30:57 PM
Hi,
I am a C# developer but new to VC, I need some help, I need to read the
console arguments and need to convert in a array of string,
Ex:
C:> myTool -out c:\in -in c:\out#c:\out1#c:\out2
I need to read every string in -in as separate, Please help me regarding
this.
Amrro
... more >>
How to kill a thread
Posted by MWK at 12/21/2004 7:52:50 PM
Hi All,
I suspect in VC++.Net (managed, VS2003)
MyThread.Abort();
is unable to kill the thread.
It was easy in C#.Net
MyThread.Abort();
MyThread = null;
Does anyone know the way to kill a thread?
Thanks and kind regards,
MWK
... more >>
Collections in C++
Posted by john andrew at 12/21/2004 2:55:03 PM
--
hello
In Visual Basic you can keep track of Objects of Classes with Collections. I
believe this is from MV C++.
I want to know is Collections used in C++ everywhere and if not how can you
keep track of many objects?
thanks
... more >>
C++ Metrics/Audit Tools
Posted by khammond at 12/21/2004 11:55:05 AM
I'm an Enterprise Architect at a large insurance company. My background is
Java, and I have brought in the CodePro metrics & code audit tool that runs
automated metrics and code audits within Eclipse/WSAD.
I'm interested in finding some similar tools for our C++ developers, who use
Visual... more >>
Preventing multiple instances of an application
Posted by Ioannis Vranos at 12/21/2004 10:04:07 AM
In .NET, how can we prevent more than one instance of a program to run?
--
Ioannis Vranos... more >>
istream_iterator<char, ptrdiff_t> fails
Posted by alberto at 12/21/2004 7:53:06 AM
I am learning STL with the book STL Tutorial and Reference guide (1 edition),
the following example don't run :
int main()
{
// Initialize array a with 10 integers:
int a[10] = {12, 3, 25, 7, 11, 213, 7, 123, 29, -31};
// Find the first element equal to 7 in the array:
int* p... more >>
foreach in managed c++
Posted by GeRmIc at 12/20/2004 10:43:02 PM
Hi,
I am working on interop using C and managed c++ (on Visual Studio 2003 IDE).
How do i simulate the foreach loop present in C# or VB.NET in MC++
foreach (DataRow dr in ds.Tables[0].Rows) equivalent in MC++?
Thanks... more >>
question about CObjet inherit...
Posted by Lauro at 12/20/2004 8:03:01 PM
I'm starting whit C++, so I don't andestand too much about .
I would like to know how can I inherit a generic class fron
CObjet class, all the time I try I recibe a message telling that
CObjet class is not defined,
I have tried making this with SDI, MDI, but nothing work,
according with a a... more >>
CG bug in VC7.1?
Posted by Hendrik Schober at 12/20/2004 2:59:47 PM
Hi,
consider this:
#include <iostream>
struct Base {
Base() {std::cout << "Base\n";}
Base(Base&) {std::cout << "Base(Base&)\n";}
};
template< typename T >
struct TBase : Base {
TBase() : Base() {};
TBase(Base& obj) : Base(obj) {std::cout << "... more >>
little problem with find stl's algorithm
Posted by Jacobo Rodriguez Villar at 12/20/2004 2:20:49 PM
Hello,
I'm trying to use the find algo from the stl library, over a list of
pointers:
std::list<Program *> m_programs
in this method:
Program *GLSLManager::GetProgram(GLhandleARB id)
{
std::list<Program *>::iterator result;
result = find(m_programs.begin(), m_programs.end(), id)... more >>
Updating VC++ 6.0 Enterprise Edition
Posted by JesseJr at 12/20/2004 11:21:05 AM
I recently installed Microsoft's Visual C++ 6.0 Enterprise
Edition(1985-1999) on my antiquated AMD K-6 2/300 with 160 Mb of SDRAM (PC66)
with a 120 Gb 8mb mem Seagate Hard Drive and an NVidia MX/MX 400 video card.
I use Windows XP Professional(SP1)/Firefox/Thunderbird.
I do not know i... more >>
Reference to temporary
Posted by Markus Raabe at 12/20/2004 7:19:12 AM
If I have a reference to a temporary, the data of the reference variable is
overwritten in VC++7.0, VC++7.1 and VC++6.0 are working.
After a3 is inizialized a2 contains invalid data. Is this a bug in the
compiler, do I have an error or are there some compiler settings that change
this behav... more >>
link.exe equivalent to GNU ld -Ttext flag?
Posted by arild.fines NO[at]SPAM gmail.com at 12/20/2004 5:55:48 AM
ld, the GNU linker, has a flag -Ttext which lets you specify the
virtual address of the .text section in the resulting executable. Is it
somehow possible to achieve the same thing using VC++'s linker?
--
Arild
... more >>
release build issues
Posted by samariton at 12/20/2004 3:13:04 AM
Recently I have seen one of our product being sent to feild in DEBUG build.I
waited for next S/W distribution date and sent across release build after
quite a bit of testing.But I have learnt lately that there are so many issues
are coming from feild , which are reporting sayiing, it crashes, ... more >>
C++ Compiler behavior regerding struct constructors
Posted by Karl M at 12/19/2004 8:09:55 AM
Hi everyone,
I just notice some strange behaviors on the MS C++ compiler regarding struct
default constructor, see the example bellow:
struct MyStruct
{
int a[5];
};
class MyClass
{
public:
MyClass();
~MyClass();
protected:
MyStruct m_MyStruct;
};
//#1:
MyClass::MyCla... more >>
properties within Templates
Posted by Christian Lammel at 12/19/2004 7:19:07 AM
this seems ok:
template<class T> ref class MyTemplateClass
{
String^ get_Name() { return nullptr; }; void set_Name( String^ ) {};
//...
};
but this throws an error
template<class T> ref class MyTemplateClass
{
property String^ Name { String^ get() { return nullptr; }; void set( String... more >>
[ASAP] Stack corruption
Posted by Peter Schmitz at 12/19/2004 6:25:02 AM
Hi,
I'm currently developing an application that includes an implementation of
the well-known Boyer- Moore algorithm. For this, I use the implementation of
Thierry Lecrq from http://www-igm.univ-mlv.fr/~lecroq/string/node14.html.
But unfortunately, this source code (see below) somtimes cau... more >>
|