|
by: TrustyTif |
last post by:
After surfing the google & MSDN for a few days I found an MSDN site
that explained how to "new" a multidimensional array in C++...but, I
don't know how to use it, for alas, my brain still doesn't understand
pointer very well. Here's the site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang98/html/_pluslang_new_operator.asp
And here's what I've come up with thus far to have a 2 dimensional
array of CStrings.
|
by: Nitin Bhardwaj |
last post by:
Hi all,
It is said that C++ is a strongly typed language and thus a type-safe
language (unlike C). So how does one explain the following behaviour :
int main(void)
{
char *p = NULL;
p = "A String Literal";//the compiler isuues no error/warning here
// but ideally it should...as p is a non-const
|
by: Fausto Lopez |
last post by:
I'm getting the following error:
'strlen' : cannot convert parameter 1 from 'class CString' to 'const char *'
when I try to compile the following code:
HRESULT AnsiToUnicode(CString pszA, LPOLESTR* ppszW)
{
ULONG cCharacters;
DWORD dwError;
|
by: romi |
last post by:
Hi
I have a problem, I want to convert program in Visual Basic 6 to VC++6.
Program in VB works OK., but in VC++ I don't know how to convert 'VARIANT'
to 'Cstring'.
How to convert 'VARIANT ww' to 'CString pp'
In C++ debug info I have:
ww={???}
ww.vt=8204
pvarVal={VT_NULL}
|
by: Tim Wong |
last post by:
All:
I am trying to convert a CString value to an unsigned char array.
I found some code online that will allow me to compile, but when I try
to print out...i get a whole mess.
/*Begin Code*/
CString day("01");
unsigned char testDay;
|
|
by: Fred Hebert |
last post by:
I have a function that requires a LPCTSTR parameter. I have the value I
want to pass to it in a TextBox->Text field. Is there any way to do it in
a single assignment.
e.g.
DWORD Xyz::TheFunc(LPCTSTR lpVal)
....
TheFunc(Junk->Text->Something());
|
by: SteveK |
last post by:
We have just started converting a large project from VisualStudio 6.0 to VisualStudio 2003. Of course, we're encountering some problems.
The first of which involves some CString() constructors not taking arguments that were valid in the 6.0 builds.
As a test, a created a simple 2003 project and inserted the following six lines of code in the stdafx.cpp file:
#include "stdafx.h"
TCHAR x = 't';
|
by: npotnis |
last post by:
Hi All,
I am trying to compile an existing C++ unamanaged application with the /clr switch in VS.Net 2003, as I need to use managed extensions in the code.
In a cpp file I have the following code :
CString strRet;
COleVariant var = m_pRSTFormList->GetFieldValue("FormName");
if(var.vt == VT_BSTR)
strRet = var.pbVal;
|
by: michael mazanek |
last post by:
Hi all,
i have a VARIANT variable which contains a "friendly name" of a
video-codec (direct show).
Does anyone know how to retrieve the friendly name as a string to
display it on the console?
Thanks for any advice!
mm
|
by: Smithers |
last post by:
Are there any important differences between the following two ways to
convert to a type?... where 'important differences' means something more
profound than a simple syntax preference of the developer.
x = someObject as MySpecificType;
x = (MySpecificType) someObject;
Thanks.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|