|
VERSION = '1' OR VERSION LIKE '1.%'
If VERSION is a string then I think that should work.
Paul
If you need me, me and Neil'll be hanging out with the Dream King - Tori Amos, Tear in Your Hand
|
|
|
|
|
Sure it's possible:
string majorVersion = GetMajorVersion();
this.dataView.RowFilter = "VERSION = " + majorVersion;
All you need is a function that will get the major version for the current assembly; off the top of my head I can't remember how you do that, but I'm sure a quick question here will provide the answer.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
Hi!
I have a structure defined in my old unmanaged class, which is a output parameter of one of my methods. I want to create a managed C++ class which "wrappes" my old one.... the question is:
Which Marshall Type Conversion must I use in order to pass the information of this structure to my managed class and viceversa?
CODE
------------------------------------------------------------------------------
void Extract( Feature* *MyFeature);
------------------------------------------------------------------------------
Feature is the structure which is really the output of my method...
Thanks in advance!!!
|
|
|
|
|
That would depend. Is the struct a POD type, or does it have member functions? If you could give an example of the "structure" of the struct, this would be easier to figure out.
Cheers
|
|
|
|
|
I'm trying to print with .NET and each time i call the method Print of my object, i have the message "Invalid handle".
Can someone help me ?
Thanks.
|
|
|
|
|
Is it possible to add my own toolbarbutton to visualstudio.net IDE.If so how to do it.
|
|
|
|
|
Is there some INI file support (other than WriteProvateProfileString-style?)
skulls don't kiss a machito [sighist]
|
|
|
|
|
Yes, however you best bet is to switch over to an XML based implementation, as this is becoming the standard for replacement of the .INI file.
Nick Parker
|
|
|
|
|
But reading .INI file output of other programs is still allowed, yes?
I still distrusts XML in terms of bloat - and is there a good XML editor anyway? i.e. one that uses the structure of the file to make editing a more sane thing than XML in notepad?
skulls don't kiss a machito [sighist]
|
|
|
|
|
Um... and do you care to name a names0ace, or function names?
skulls don't kiss a machito [sighist]
|
|
|
|
|
|
|
I would really like to be able to read the keyboard directly(no GUI) with windows user interface. I only understand c#, so please post a snippet of code to do this in c#.
how do I use this in c#?
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_KEYDOWN
WPARAM wParam, // virtual-key code
LPARAM lParam // key data
);
MK
|
|
|
|
|
Something strange has happened to by VisualStudio.
The "icons" for the code outlining ("+" and "-") have been replace by a small square and a weird "L" shapped character.
Has anyone else experienced this? It almmst looks like the font used for the +/-'s has changed from Arial to Wingdings!!
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
|
leppie wrote:
Me! I thought it was video driver corruption Well a clean XP install did the trick
Arhhh!!!!
That wasn't the answer I was looking for.
Try again.
(Suggestion: I really like solutions along the lines of "change value x in ini file to 42!!". Like that would be good.)
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Yep, happened to me.
Like leppie said, it was video driver problems with full acceleration enabled. Knocking it down a tick fixed it for me. I got the full fix about a week later when ATI released version 02.3 of its Catalyst drivers -- I have an ATI Radeon 7500.
IIRC the problem was caused from the previous drivers not being WinXP SP1 compatible.
James
- out of order -
|
|
|
|
|
Interesting.
I too am using a Radeon 7500, however I am under Windows2000.
I'll fool with the video and see if that has any effect.
Thanks gang.
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Yee haw!! Updated Video Driver worked like a charm!!
Thanks for the nudge in the right direction..
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Hi All
I have a bitmap loaded as the background in a user control. The control was placed in a form and sized to cover the form's entire client area. All of this was done with designer, not dynamically. When viewed on a different computer, the bitmap image is smaller than the client area. Is this because different devices have different x-y pixel ratios?
Can someone show me how to dynamically size the form so that the client area matches the picture size? I think it would be easier to size the image, but I do not want to distort the image size or quality.
Thank you in advance for any guidance.
Paul
|
|
|
|
|
oops I can't believe I stumbled on the answer soon after posting my question.
This is what I came up with ....
this.SetClientSizeCore(View.Size.Width, View.Size.Height);
|
|
|
|
|
Any recommendations on articles, sites or books on Image manipulation in C# and .NET (no direct Windows API).
thanks
Stupidity dies.
The end of future offspring.
Evolution wins.
- A Darwin Awards Haiku
|
|
|
|
|
Some clown wrote a series of articles on this site, I forget his name, but I wouldn't trust him. Still, might be better than nothing.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Another clown wrote this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp11152001.asp
|
|
|
|
|
LOL - actually your article was very helpful to me when I was figuring out how to do this stuff in C#. So my articles are sort of the stunted, half baked, in bred children of your article.....
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|