|
try http://www.wotsit.org/
|
|
|
|
|
Hi,
Have any of you ever succesfully used the build-in profiler in VC6?
I have tried on several machines without luck.
After my App have finished, VC tell's me that it can't find a file in the outputdir called "test.pbo" (if my project is called test)...
Any ideas?
TIA,
- Anders
|
|
|
|
|
Heres a hard coded sample of assigning "Hello" to this variant bstr value. How would I assign a char* or char[] to bstr?
char *cTemp="Hello";
char cTemp2[32]="Hello";
VARIANT v;
v.vt = VT_BSTR;
v.bstrVal = SysAllocString(OLESTR("Hello"));//work ok
// how would I assign these?
v.bstrVal = cTemp;
v.bstrVal = cTemp2;
|
|
|
|
|
There might be smarter/better ways to do it, but the following code works
char *t = "just testing";
CComBSTR bs;
bs.Append(t);
VARIANT v;
v.vt = VT_BSTR;
v.bstrVal = bs;
- Anders
|
|
|
|
|
You don't assign a char* to a BSTR, because a BSTR is not a C string. If you want to create a BSTR from a char array, use an ANSI<->Unicode conversion function, for example T2OLE:
#include <atlconv.h><br />
<br />
V.bstrVal = SysAllocString ( T2COLE(cTemp) );
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
--Buffy
|
|
|
|
|
Thanks I found the follwoing seems to work...
var.bstrVal = (_bstr_t)cTemp;
|
|
|
|
|
No, that code is incorrect. It will not work reliably. You're putting into var.bstrVal the contents of a temporary variable, which gets destructed once that assignment statement completes.
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
--Buffy
|
|
|
|
|
how can detect the current lpt port address
because the lpt has three different addresses and can be changed from the setup of pc.
thanks
|
|
|
|
|
I am trying to update a .dbf database. I opened the database and the
CRecordset derived object with settings so the database could be
updated. CanUpdate() returns true. Yet when I try to call Update(),
I get a message that says the database is read only! How can this
happen, and how do I fix it?
Robert
|
|
|
|
|
Hi!
I'm trying to write a DLL, which contains calls to COM methods.
Most calls works OK, and everything seemed fine in the beginning,
but now I've encountered that a COM method call genererates an
access error (STATUS_ACCESS_ERROR).
What I'm actually trying to do, is to use the Microsoft Platform
SDK with Borland C++, which is seemingly hopeless. Therefore, I'm
wrapping my methods up in a DLL written in Visual C++ with the
wanted PSDK calls (actually the WIA SDK for Windows ME), and then
using this DLL in the Borland program I'm creating.
I haven't really encountered any access errors writing DLLs before,
so I thought everything was going to be fine. But I suspect that
some sort of initialization should be done in the DllMain-function
related to memory handling?
By the way, if I try the same COM-call in a "real" application,
everything works fine, only the call in a DLL makes the access
error.
I would be extremely grateful for any help or suggestions when
it comes to what could be wrong. I could include code samples,
but don't think they are needed. Some general guidelines to DLLs
could be enough to get me on track!
Regards,
Lars Ove Claesson
|
|
|
|
|
Hello
I need help on creating ActiveX Composite Control (MSCOMCTL.OCX) with visual interface like modelless dialogbox with listview control
with VC++6 MFC ActiveX Control.
I need samples and code, but not VB!Thanks...
Best regards
|
|
|
|
|
Has anybody got any c++ code which will get the name of the CDROM drives on your pc? I have two CD Rom Drives which are SAMSUNG and LG. I want the code to get these names from the system - any hints or tips would be appreciated - many thanks in anticpation.
|
|
|
|
|
Anyone looked at Microsoft Money and said, "I know exactly how they did this. "?
I have a contact manager project ahead of me, Feb/Mar... and was thinking of the look/functionality of MS Money. There are a lot of things that seem different from the normal Doc/View architecture. Any thoughts?
Thanks!
Scott!
PS. Please don't flame if this is a stupid question, I am new to non wizard generated gui plumbing, but am willing to read and practice to gain necessary knowledge.
|
|
|
|
|
Sorry, forgot to mention what version.
Scott!
|
|
|
|
|
Can you post a screenshot , I've never seen it !
.
However I remember reading circa Internet Explore Release 4.7, that the GUI of MSMoney had been changed to a MSHTML driven App using the IE components,
But Like I said I've never seen MSMOney !
Regardz
Colin Davies
|
|
|
|
|
How do I get current projects name and path using Visual Studio macros?
|
|
|
|
|
To get the 'active' projects' name try..
Application.ActiveProject.Name
To get the full name (I assume the path is in here..)
Application.ActiveProject.FullName
HTH
Jignesh
|
|
|
|
|
Hi again!
I forgot to ask this as well in my previous post.
I thought to also add the feature to produce Animated GIF output to my app and I needed some hints/guidance to where I can find sample codes or any library ready to use inorder to produce Animated GIFs from a sequnce of animated screen activity of my app!
Again Thankx so much IN ADVANCE and FOREVER!
" I love water, but hate to drown! "
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
|
Hi All!
OK, this may sound too technical but I've done almost 80% of the job! Only one problem I have to solve which I could not since 3 days trying!
I need help and it is this:
I get the 1st frame of the AVI stream and pass it to a function that accepts two parameters, a file name string and an LPBITMAPINFOHEADER lpbih which is the 1st AVI frame I mentioned above.
OK, I fill the lpbih with the format I desire and then try to save it plus the rest of the extracted frames into BMP files and to HD!
I fail in this process as the saved BMPs are only 1KB and empty(no image data)!
ANY HELP IS HIGHLY APPRECIATED IN ADVANCE! and of course FOREVER!
" I love water, but hate to drown! "
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
Hey guys!
What's up! Just a reminder that I still need some of your replies!
Cheers
"Silence is golden, but my eyes still see."
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
Check Platform SDK, there are three sample programs (AviEdit, AviView, ...)
|
|
|
|
|
Hi!
Thankx for your reply, I appreciate!
I have the SDK samps already and gone through them as well! but not one of them shows what I need!
I thought if anyone has done this already and knows how!
"Silence is golden, but my eyes still see."
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
Hi, I am writing a programme and using vector in it, and I get host of errors. So I wrote a simple program using vector to get an idea what is wrong with my vector definition. The simple program is as follows:
======================
#include<vector>
class me{
vector <<string>> my;
};
==========================
List of Errors I get on compiling:
c:\gen.cpp(4) : error C2143: syntax error : missing ';' before '<'
c:\gen.cpp(4) : error C2501: 'vector' : missing storage-class or type specifiers
c:\gen.cpp(4) : error C2059: syntax error : '<'
c:\gen.cpp(4) : error C2238: unexpected token(s) preceding ';'
===============================================================================
CAN SOMEONE HELP ME PLEASE...................WHATS WRONG WITH MY PROGRAM !!!
PLEASE...............THIS IS AN SOS.......................
|
|
|
|
|
Please note that between the angle brackets after vector is 'int' which however is not showing in the message I don't know why !!
|
|
|
|