|
Thanks Roger.
I've seen the article u suggested. It doesn't cater for PDF 417 barcodes.
Please any further help will be appreciated!
What will life be without politicians and programmers?
|
|
|
|
|
I've found many good samples about DataGrid, but I'm a freshman & couldn't understand them completely.
I need a good sample that demonstrates how to link DataGrid Component to my database. I mean how to fill DataGrid's column by data from my database.
If anyone can help me please e-mail it:
keeper_@km.ru
Thanks in advance.
|
|
|
|
|
|
Hello,
Does anybody know how to cast a IXMLDocument object into a VARIANT type object?
Thenks a lot
|
|
|
|
|
|
Thanx a lot for the Info. How do I do the first part of 'Query IXMLDocument for IDispatch'?
|
|
|
|
|
|
Hello!
I'm trying to use an ActiveX dll written in VB from my VC++ program.
After reading the article
http://www.codeproject.com/com/vb_from_vc.asp
I still have some problems.
I thought the compiler would generate error-free files for me to use!
In the project settings I have made the compiler create a h-file and a c-file when compiling the idl-file, which works just fine. Those files are included in my project, but then these errors occur when I try to build it.
1. In my generated c-file I get this error:
fatal error C1010: unexpected end of file while looking for precompiled header directive
2. I include my generated h-file in my dialog, but I get an error:
error C2061: syntax error : identifier '_sockdata'
The declaration in the h-file looks like this:
virtual /* [id] */ HRESULT STDMETHODCALLTYPE SendToServer(
/* [in] */ /* external definition not present */ _sockdata __RPC_FAR *MySesH) = 0;
Please, if you have any idea what I could do to solve the problem, give me a reply! Thanks!!
|
|
|
|
|
First you would have to disable pch(precompiled headers) for the files when you include them in your project. Second, you have to make sure that you include references to anything you add in your VB project. In this case try adding #import "c:\windows\system32\mswnsck.ocx" assuming that is what was included in your vb project for win sock ability. Add it before you include the header file generated from midl. An alternative to using this method is to include two lines in your stdafx.h.
#import "mswnsck.ocx"
#import "vb.dll" no_namespace named_guids // rename to correct name for your activx dll.
This should fix the problem. however, another may pop up depending on if you have anything other than the standard references or controls added to your vb project.
|
|
|
|
|
Thanks!
I also tried not including the c-file in my project which got rid of problem no 1...
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
I have a CAsyncSocket derived class.
int retval=m_inSock->Create(inport,SOCK_DGRAM);
this line causes creation of both UDP and TCP sockets at windows98.
The same problem is not appeared at Windows 2000.
i cauth that result by "netstat -a"
How come this is possible?
In release mode, program doesn't terminate.. giving the same errors and i have to reboot the computer to get out of it.
In debug mode everything seems fine.
Thanks in advance.
|
|
|
|
|
I am not familiar with winsock wrapper. Check the source code and make sure it does not call IPv6.
Kuphryn
|
|
|
|
|
|
Hi,
I have written a control using MFC. The control uses COleControl as its base class.
I can see a property called "Visible" when presented with the property list in Visual Basic.
I intend to change this value when I resize the control, however, I cant find a virtual override or a windows message that I can use to handle any change in this property.
Is there another way to get notification of change in the visibilty of the control in my form?
GB
|
|
|
|
|
Your control probably doesn't implemented "Visible" property -- it's an Extended propery provided by VB and implemented through agregation in your control.
Therefore, there is no way for your control to be notified through "Visible" property change notification.
However, you always have an option either:
1. to imlement DoVerb method IOleObject interface (check for OLEIVERB_HIDE,OLEIVERB_SHOW);
2. check for empty device context returned by GetDC on the window of your control.
There maybe some other more "advanced" methods...
Regards
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
It works! Thanks. Just have to remember how I was going to use it!
Also I noticed from MSDN that this should be visible via the ambient properties set but I couldn't find a #define for DISPID_AMBIENT_VISIBLE... which should be available according the documentation.
In fact I couldn't really find much detailed info about the ambient properties at all.
Regards.
|
|
|
|
|
Yes, DISPID_AMBIENT_VISIBLE is not available. Plus, don't forget that even if it does: it's up to the container to implement it or not. So, to have your control as much container independent as possible it is better not to rely on ambient properties being implemented (if possible).
Regards
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I need to process large files (> 2Gig). The regular C functions "fopen" or MFC CFile operate with a long value offset which limits the file to 2**31. Is their a other option than using low level routines ( _open, _lseek, ...) ?
Andre
|
|
|
|
|
|
In addition to Ian's suggestion, this article might be of interest.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Thank you for the info. CFile64 needed integration, but did the trick! (Will I ever need CFile128?)
|
|
|
|
|
Andre1234 wrote:
Will I ever need CFile128?
If you do, just check back here and I'll suggest it to you!
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
One of the possible ways is to write wapper class similar CFile
specially assigned to manipulate with VLF.
F.e. - inside, this class could use 64-bit lo-level functions.
Thanks for the interesting question.
Vitali
http://www.creative-case.com
|
|
|
|
|
Use CreateFile() & CloseHandle()
Phil
|
|
|
|
|
I'm using the CMSChart class to plot a x-y scatter chart in VC, but the value of y data is much bigger than the x data, e.g. 100 v.s. 0.1, how could i set the scale of x and y coordinate to get a good appearance? Thank you!
|
|
|
|