473,511 Members | 15,581 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can we replace a CByteArray object with vector?

bajajv
152 New Member
Hi,
I have to replace a CByteArray object by pure C++ function. I am trying with this -
vector<vector<char>> charVec;

Thanks for your help.
Oct 14 '09 #1
2 3111
Banfa
9,065 Recognized Expert Moderator Expert
why aren't you trying this

vector<BYTE> byteVec;

?

You do realise you wont be able to pass the vector to any function that specifically requires a CByteArray object don't you?
Oct 14 '09 #2
bajajv
152 New Member
I have to replace that function also.
Oct 15 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2934
by: Peter Chatterton | last post by:
I have a class extending Vector, but I want it to extend another base class that contains variables. Can I implement some interfaces to do the same thing? The following from the Vector API...
1
2029
by: da Vinci | last post by:
I have been trying to post to .help all day but nothing is going through. Will try it here and hope it does.... I am trying to access a getData() method that simply returns a stored integer...
1
6331
by: terminator800tlgm | last post by:
I don't understand the difference between ojbect handle and reference. For example, class Stack { private: CD cd_obj; // cd object DVD & dvd_ref;// dvd reference Why is it that dvd_ref can...
1
2514
by: sandeep Kanwal | last post by:
Hello, Just started using some STL stuff and I am getting some compiler error as below Please guide... Error : illegal operands 'GraphicDataLinkInfo' == 'const GraphicDataLinkInfo' (point...
1
3955
by: Bo Xu | last post by:
Object of Combination By Bo Xu Introduction A combination of n things, taken s at a time, often referred as an s-combination out of n, is a way to select a subset of size s from a given set of...
9
4766
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
9
1621
by: asdf | last post by:
Here is a line of code that I'm trying to replace to use std::vector: Foo theFoos; I tried to use vectors with std::vector< std::vector< Foo > > theFoos( MAX_ROWS, std::vector<Foo>(...
7
3120
stealwings
by: stealwings | last post by:
I have a little problem with my program, or maybe it is not that little, anyway here is the code: #include "stdafx.h" #include <iostream> using namespace std; #include <fstream> using...
5
1747
by: yurec | last post by:
Hi all, I've following loop and i'm interested if there is any algorithm in stl (i see just for_each with appropriate logical meaning) maybe with some boost classes which can replace following...
0
7427
jinu1996
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...
1
7085
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...
1
5069
isladogs
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...
0
4741
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...
0
3227
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...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
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 ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.