all groups > visual c > april 2006
Filter by week: 1 2 3 4 5
Adding a Web Reference changes DataTypes ???
Posted by cc at 4/30/2006 8:41:26 PM
Hi,
I having created a simple WebService (in VS 2005) with just one WebMethod as
follows :
[WebMethod]
public DataTable GetProducts()
{
DataTable objDataTable = null;
// code for filling up the datatable
return objDataTable;
}
Then, Adding the WebService as a Web Reference to... more >>
C++ Debugging problem
Posted by Nadav at 4/30/2006 2:31:01 PM
Hi,
I am writing a Thread pooled P2P application, I have a constant flow of
actions that produce a certain problem, though I cannot find it’s cause.
I get “Free Heap block 356c00 modified at 356c34 after it was freedâ€,
following is a list of actions I have done while trying to find the... more >>
using collections in c++
Posted by tessellated at 4/30/2006 1:02:23 PM
Hi all,
I want to iterate through a collection and at each item in the
collection access a particular property. In C# i know how to do this
easily, but with c++ I am a bit mystified Below is some sample code to
give you an idea of what i am trying to do.
SPGlobalAdmin * globAdmin = new SP... more >>
Altering location of .ilk file
Posted by studennett at 4/30/2006 12:39:49 PM
Hi,
Is there any way to alter the location where this incremental link
information file is placed? It is always placed in the same location
as the generated .exe file, but I like to keep such 'intermediate'
files separate from my output files.
I've altered $IntDir, but this has no effect o... more >>
Installing express version
Posted by GlenS at 4/30/2006 6:36:01 AM
I'm trying to install the espress version on my sons computer for school. I
chose a drive with plenty of space but the install fails because it is trying
to shove 1.3 G into the 400 M free on drive C:. How do I get it to stop
trying to use drive C:?... more >>
variable args question
Posted by Bit byte at 4/30/2006 12:00:00 AM
I have a C function that takes variable args, i.e. is of the form :
foo( const char*, const int, ... ) ;
I want to expose this function so that I can call it from VB(6).
My questions are:
1). Is it possible to export a function with variable args in a DLL?
2). How would such a functon be ... more >>
DLL design question
Posted by Bit byte at 4/30/2006 12:00:00 AM
I have an application which consists of several (approx 40 C/C++ dlls).
I want to provide a C (Win32 Dll) API to these Dlls. However, I
want to partion the API at a different level of abstraction. I need som
advice on the best practise on doing this. the following may help
explain the ... more >>
Format Partition in C++
Posted by spryguy at 4/29/2006 11:31:01 AM
Is there a way to format a partition from within a C++ app?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to Force compiler to give error notice in "if" clause?
Posted by MilanB at 4/29/2006 8:40:02 AM
Hi,
Is there a way to force Visual C++ compiler (VS 2003) to give an error or
notice in case of IF statment have "=" instead of "=="
for example
if(locationID = 10351) is passing, but I want an error fired
Thanks
Milan... more >>
Is there anybody how to create hidden folder in public folder or system?
Posted by Vic.Dong at 4/28/2006 11:23:41 PM
Hello:
Is there anybody how to create hidden folder in public folder or system?
I have a any problem.
I cannot create hidden folder in public or system folder.
Is there anybody who knows the answer to create hidden folder ?
B.R.
Vic
... more >>
deleted namespace?
Posted by iwdu15 at 4/28/2006 12:55:02 PM
hi, i used VS2003 for my C++ apps and i recently downloaded the 2005 Express
Edition of C++. I tried a simple console app to see what was different, and i
noticed they deleted the old "system" namespace. like how you could do
"system("pause");" and such...what happened to that?
--
-iwdu15... more >>
Calling java (.jar) from C++?
Posted by cada0310 at 4/28/2006 11:16:02 AM
Hi there,
I have a need to call a java database library from C++ applications. Can
anyone point me in the right direction on how to accomplish this?
Thanks.
... more >>
GetCurrentDirectory is not working for real application path
Posted by Hasan O. at 4/28/2006 12:00:00 AM
Hi ,
I have a simple program thats open some file a.txt. When program starts it
gets GetCurrentDirectory and finds / opens the a.txt file. But if i create
a shortcut on desktop it couldnot find real working directory. How can i do
this ?
this is not working for shortcuts
char buf[2001];... more >>
Managed Wrapper for unmanaged Constructor with inputs
Posted by bidalah NO[at]SPAM yahoo.com at 4/27/2006 7:53:45 AM
Hi all,
Basically I need to create a managed wrapper for the class "A" below:
class A : public CModule
{
public:
A(B& bees);
virtual ~A();
.....etc. (it's actually a very big class)
}
As you can see, the constructor above takes an input which is a
reference to another unmanaged c... more >>
STLPort in VC++ - Compile problems
Posted by PangFromChina at 4/26/2006 8:38:08 PM
Platform:window 2000 professional, VC++6.0 +SP5
STLport: STLport 5.0.2
While test STLport following "STLport README for Microsoft Visual C++
compilers." of README.msvc(readme.txt), there is a error:NMAKE: fatal
error U1077: 'cl': return code '0x2'stop.
I can build STLport without any err... more >>
how to inject system process SERVICES.EXE as system restart?
Posted by Vic.Dong at 4/26/2006 7:14:40 PM
Hello. all:
I want to inject a DLL of my custome hook dll to system serice SERVICES.EXE
application as every OS restart?
B.R.
VIC
... more >>
The "ResolveNativeReference" task failed unexpectedly
Posted by Tony Wong at 4/26/2006 4:31:56 PM
I have a C++ project (assembly) and a C# project (client that uses the C++
assembly). These projects used to work when compiled under VS 2003 but when
I upgraded my projects to VS 2005 I got the following error when I compile
the C# client,
--------------------------------------------------... more >>
Expression: map/set iterators incompatible
Posted by Shiraz at 4/26/2006 12:44:02 PM
Me and my colleagues have been working on a problem since yesterday and can’t
seem to find a solution to it. It relates in a good measure to iterators and
the way we’re using them in our project. I will first give you a little
introduction to our main task. We had at our hands entire modul... more >>
[repost] Static initialization of native code in CLI/native mixed environment
Posted by bvisscher NO[at]SPAM bellsouth.net at 4/26/2006 11:29:51 AM
I posted this recently in microsoft.public.vc.language and was
redirected
here.
I also searched this ng and found some relavant threads.
The most relavent I found was:
http://groups.google.com/group/microsoft.public.dotnet.languages.vc/browse_frm/thread/dac4c07f8678cc0a/32919fdc1ee07313?q... more >>
winMM mscoree combo problems
Posted by Eric T at 4/26/2006 10:04:36 AM
Hello friends, I'm in charge of some pure VC++ code but we're adding new
features using managed C++ (7.1). On two of three developer machines the
execution of this code has become impossible recently -- we don't know what
changed. Depending on my lib files list order I get different errors. ... more >>
C++ vs. C# (new to windows programming)...
Posted by Volker Hetzer at 4/26/2006 12:00:00 AM
Hi!
After messing around for some time with Tcl/Tk and VBScript,
we've finally reached the point where we need to put some speed
into our applications.
So, our typical application looks like this.
We've got this huge CAD tool, called Mentor Expedition, which
understands VBScript and JScript ... more >>
DLL Help
Posted by Abhishek at 4/26/2006 12:00:00 AM
I need to know if there is a there is a way to find out which exe or dll
called a certain dll.
I need to find out the exe's name (xyz.exe).
any links would be helpful.
regards
Abhishek
... more >>
Interface stuff does not compile
Posted by solved by design at 4/25/2006 9:58:26 PM
Hi all!
I have this clases:
interface class i1
{
void m(void);
void m2(void);
};
interface class i2
{
//void m(void);
void m3(void);
};
ref class pepe:public i1,public i2
{
virtual void m(void){;}
virtual void m2(void){;}
virtual void m3(void){;}
};... more >>
Rationale for C++/CLI Value Types not having a default constructor
Posted by Edward Diener at 4/25/2006 7:43:22 PM
Given
value class X
{
public:
// Not allowed: X():i(100000),s(10000) { }
// Allowed
void InitializeDefaults() { i = 100000; s = 10000; }
private:
int i;
short s;
}
How can:
1)
X x;
x.InitializeDefaults();
be better semantically than
2)
X x;
for setting the default v... more >>
C++/CLI reference
Posted by Edward Diener at 4/25/2006 7:11:29 PM
Why is there no C++/CLI reference in the VC++ docs for VS2005 ?... more >>
How to use SaveFileDialog?
Posted by Rob at 4/25/2006 3:55:01 PM
Hi, I have recently installed Visual Studio 2005 and although I'm starting to
understand the 64 bit differences, I seem to have run into another problem.
I would like to implement a simple "Save As.." dialog box, which back in the
day I remember was extremely simple, but now I can't find how ... more >>
Implementing assign operator ( = )
Posted by Edward Diener at 4/25/2006 11:38:52 AM
Since implement the assign operator for reference types eliminates the
ability to assign a reference object to a reference variable of the same
type or base class of that type, I assume that implementing the assign
operator ( = ), to assign the value of a type from one object to another
rath... more >>
Replacement for #pragma comment(exestr, "this is a string")?
Posted by chris_doran NO[at]SPAM postmaster.co.uk at 4/25/2006 10:45:53 AM
/COMMENT has been removed from the linker that comes with VS2005, and
use in source code of:
#pragma comment(exestr, "this is a string")
gives the message:
warning LNK4224: /COMMENT is no longer supported; ignored
and doesn't put the string in the exe file.
Has anyone found a replac... more >>
ODBC Bulk Insert
Posted by Mike C# at 4/24/2006 10:39:15 PM
Am looking for an ODBC SQLBulkOperations wrapper for VC++; in particular I
need to perform bulk Insert operations. Anyone know where I can find this?
Thanks
... more >>
C++/CLI comparing two clr poiinters for equality
Posted by Edward Diener at 4/24/2006 1:46:29 PM
Now that operator overloading allows to ref classes to be compared for
equality using == syntax, how does one compare the actual ref pointers (
^ ) for equality instead ?
As an example:
SomeRefObject ^ obj1(..initialized somehow);
SomeRefObject ^ obj2(..initialized somehow);
if (obj1 =... more >>
Finding out if a trivial event has handlers
Posted by Edward Diener at 4/24/2006 12:00:00 AM
When I try to find out if a trivial event has handlers, by comparing the
event to nullptr, I get compiler error C3918. So my natural question is
how does one test a trivial event for handlers ?... more >>
function does not take number parameters in namespace
Posted by kuoxin at 4/24/2006 12:00:00 AM
hi,
i create several new class in the my namespace, these class have the
same name of functions that are be referenced each other. the vc 2005
complier spawns the c2660 error.
source code:
// gcChar.h file
namespace gc{
class gcChar{
public:
gcChar():ch_(0x0){};
gcChar(GCCHA... more >>
Comparing object instances
Posted by Abubakar at 4/23/2006 5:24:32 PM
Hi,
(using native/unmanaged vc++ 2k5)....
How do I compare one object instance to another.....
like in C# *is* operator is used... how is it done in native c++.
Regards,
Ab.
... more >>
Cannot get intellisense to work with VS 2005 and C++/CLI
Posted by cnathaide NO[at]SPAM yahoo.com at 4/23/2006 2:55:22 PM
Hi,
I am new to Visual C++ (I have been using C# for the last 4 years) and
would like to make the transition to C++.
On my first project, I cannot get intellisense to work (either in a *.h
file or a *.cpp file). I have tried troubleshooting using the methods
recommended i.e. closing the pro... more >>
VS 2005 C++ and sphelper.h - SAPI
Posted by Dan at 4/23/2006 9:11:02 AM
Our applications that use this file no longer compile due to new restrictions
in the VS 2005 C__ compiler.
c:\program files\microsoft speech sdk 5.1\include\sphelper.h(769) : error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int
c:\program files\microso... more >>
Testing for nullptr for a ref object
Posted by Edward Diener at 4/23/2006 8:37:45 AM
For a ref object x, can I say "if (x)" rather than "if (x != nullptr)"
to test that x is pointing to something ?... more >>
Inherit a form from other form
Posted by solved by design at 4/22/2006 4:59:58 PM
Hi all!
Is that possible, linke in C#? How? I cannot find how do it.
Thanks in advance.
--
Leyendo:
El vizconde de Braguelonne (Dumas)
-------------------
Estadísticas BOINC: http://www.boincsynergy.com/images/stats/comb-3905.jpg
-------------------
Las mujeres son como los perros, m... more >>
Screen font size - user set ?
Posted by TOM at 4/22/2006 1:45:33 PM
I have an application that does not behave too well when the user
changes the
Display Properties -> Appearance -> FontSize
after clicking Display from the Control Panel
to "Large Fonts" or "Extra Large Fonts"
(WinXP defaults to "Normal").
Two questions:
1) In C++.NET (V1.1) -... more >>
Error C3699 Indirection Caret
Posted by Bob Palank at 4/22/2006 8:35:55 AM
Given the following from MSVC Help:
// C3699.cpp// compile with: /clr /cusing namespace System;int main() {
String * s; // C3699
// try the following line instead String ^ s2}
So how do we handle such a major change with new C++ students when the
current books show astericks ?
Th... more >>
casting in generic
Posted by 3nc0d3d NO[at]SPAM gmail.com at 4/22/2006 4:02:06 AM
I have needed to cast a pointer with different types for get a value.
I have try to use generic, but there are cast exception.
For example the following method:
generic<typename T> void XClass::GetValue(T gValue)
{
int iValue=34234234;
void *vValue=&iValue;
gValue=(T)*vValue;
}
ca... more >>
10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP)
Posted by softwareengineer2006 NO[at]SPAM gmail.com at 4/22/2006 2:29:36 AM
10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP)
I have listed over 10000 interview questions asked
in interview/placement test papers for all companies between year
2000-2005
in my website
http://www.geocities.com/allinterviewquestion/
So please have a look and make use of... more >>
How to hide system folder?
Posted by NianHawk at 4/21/2006 11:11:01 PM
Hi,
I know IShellFolder::GetAttributesOf can get property of any sys folder.
But how can I hide sys folder? which function can do it?
--
Nothing impossible, Nothing sure... more >>
Mixed mode programming problem in C++/CLI
Posted by Edward Diener at 4/21/2006 2:46:50 PM
In Managed C++ in order to share the functionality of a class between
its CLR code and native C++ code, in essence mixed mode programming for
a class, I would design the __gc class so its corresponding __nogc C++
class would be a nested class of the __gc class. The __gc class would
have a po... more >>
convert String ^ in char *
Posted by nicolas.hilaire NO[at]SPAM motorola.com at 4/21/2006 12:10:23 PM
hi all,
i'm using this code to convert a String ^ in char *
String ^str = "string .net";
IntPtr p =
System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(str);
LPCSTR str2 = reinterpret_cast<LPCSTR>(static_cast<void *>(p));
System::Runtime::InteropServices::Marshal::FreeHGlobal(... more >>
Singleton per DLL instance
Posted by Herby at 4/21/2006 6:20:37 AM
I am going to develop a multi-threaded application that creates many
instances of a calculator object. Consequently the DLL housing the
Calculator is to be thread safe.
Within the DLL i want some global singleton objects - these then become
accessible from all sub-objects comprising the calcu... more >>
Command line error D2022 : cannot open ''
Posted by alexander.meister NO[at]SPAM bucher-suter.ch at 4/21/2006 2:18:27 AM
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
cl : Command line error D2022 : cannot open ''
Have any body an idea?
OS: Win2000 Pro
Tool: Visual Studio .Net 2003
... more >>
Odbc<< Oledb?
Posted by ram_palavalasa at 4/21/2006 1:02:26 AM
Hi all,
I have a assignment of vc++.net and sybase to populate data an
generate reports which is the best one?
is OLEDB more efficient than ODBC? i think OLEDB itself is a layer o
the ODBC..then how it can be?
Thanks,
RA
--
ram_palavalas
-------------------------------------------... more >>
Perl Script When Launched From the Service Fails to Load Environment Variables
Posted by ANarula at 4/21/2006 12:00:00 AM
I am running into a strange problem. I have perl script which reads the
"APPDATA" environment variable, and does some work on that directory.
When I a launch this script from Command Prompt, it works perfectly fine,
however when the same script is launched from a DLL hosted in a particular
... more >>
How to link old 3 pty libs in MC++???
Posted by Thorsten at 4/21/2006 12:00:00 AM
Hi all
I'm trying to use a third party library which is compiled with an older C++
compiler then the compiler in Visual Studio 2003. My project is a managed
C++ library and I use the Visual Studio 2003.
In the header files of the third party lib I can see that <fstream.h> is
used and... more >>
VS2005 major development bug
Posted by Edward Diener at 4/20/2006 11:19:38 PM
After spending more than a day reducing a complicated compiler bug to a
simple case I reported it to the MSDN Product Feedback Center as a bug
just now. However this bug is completely stymying my development of a
VC++ component. Does Microsoft still offer any free bug reporting cases
for VS2... more >>
|