|
As Ian said, Windows only deals with homogeneous processes, so all the code must be 32-bit or all of it 64-bit.
A managed app targetting "AnyCPU" gets launched as 64-bit on a 64-bit OS, and will refuse to load 32-bit code.
If you have unmanaged dependencies, the practical way is NOT to use "AnyCPU" and therefore it is a pitty that
(1) it is the default, and (2) Visual Studio Express doesn't really give you direct access to any other setting.
|
|
|
|
|
I'm trying to understand what's going on... When I created the custom control and dynamic buttons, and run it on my pc. i see everything on my GUI. But when running on my co-worker's computer, the dynamic buttons aren't showing. These buttons are hard coded in their GUI location.
I apparently discovered that the buttons were hidden behind the custom control on my co-worker's computer.
The computer and gui size are as follows:
my computer (x86):
Screen resolution - 32-bit (true color) 1440x990
GUI size: 549, 352
my co-worker (x64):
Screen resolution - 32-bit (true color) 1920x1080
GUI size: 732, 433
What gives? I had believed that the GUI would be at the same size. Care anyone explain? My co-worker got my source code and her visual studio (same version as mine) and the custom control size has shown to be bigger size than mine.
modified 9-Jul-12 13:03pm.
|
|
|
|
|
What DPI are you both viewing at?
|
|
|
|
|
Ahh! That explains it! My pc is set to 100% (96 DPI) and she has 125% (120 DPI).
So that would mean I would need to make adjustment on my code to calculate DPI value.
Gonna find out how to do this!
|
|
|
|
|
Or not. If you use anchoring, you effectively remove the dependency on resolution.
|
|
|
|
|
Rather than recalculating the positions yourself, you may get satisfactory results by using the Anchor or Dock properties of your Controls; setting Form.AutoSize often helps too.
|
|
|
|
|
Hello!
Could anyone please help me with this:
XAML:
<ContentPresenter Content={Binding Path=Navigation}/>
ViewModel
private UserControl navigation;
public UserControl Navigation{
get {return navigation;}
set {navigation = value; OnPropertyChanged(()=>Navigation);}
}
void LoadControl(UserControl control)
{
this.Navigation = control;
}
What I want to do is create an animation which changes the Width of the ContentPresenter stepwise.
If control != null step from 0 => control.Width
else step from control.Width => 0
Any ideas how this can be done (can this be done in XAML soley)?
Help, as always, would be highly appreciated.
|
|
|
|
|
Hi,
I've faced some problem when am trying to return the LINQ class type function's result as a DataSet type.
If any one Know About this, Help me.
thanks in Advance!
|
|
|
|
|
I am trying to create an Excel line-column combination chart using C#. I know how to create a line chart or a column chart but I don't know how to create a combined chart. Could anyone please point me a direction or provide a short sample code on how to create such chart? Thanks in advance.
|
|
|
|
|
You can achieve this adding SecondaryAxis to the chart.
"The worst code you'll come across is code you wrote last year.", wizardzz[ ^]
|
|
|
|
|
Can you show me example code?
I have tried and got error.
myChart.Series("Series 2").XAxisType = AxisType.Secondary;
|
|
|
|
|
Which office version are you using?
Basically, you will have to create a new chart type and then add a series to it. You will then have to add this to your Chart.
"The worst code you'll come across is code you wrote last year.", wizardzz[ ^]
|
|
|
|
|
How to draw a excel chart with combination of bar and line charts.
eg: left handside is frequency, right handside is percentile with the interval as x-axis.
And how to remove the legend entry?
|
|
|
|
|
|
That is a surface chart.
What I want is a line graph + column graph on the same chart
|
|
|
|
|
I have an array includes list of users session id.
I wanna expire all of them.
Is it possible in ASP.Net (c#), if so, how ?
else, how can I do it with C#?
Thanks in advanced
|
|
|
|
|
Try Session.Abandon();
This should destroy data related to the session.
BTW, this is the C# forum.
Try posting in the ASP.Net forum next time onwards....you have better chances of getting a propert answer.
|
|
|
|
|
Well, Because I guess, it couldn't done in ASP.Net, I've written it in C# forum.
AFAIK Session.Abandon(); expire current session ! I wanna expire a session with session id
|
|
|
|
|
If I were doing this, I would use SessionIdManager[^] as a base. Basically, I would inherit from this and implement my own session management.
|
|
|
|
|
Hi, i am working on a project named object tracking in video files as part of my academics.
I used "A Simple C# Wrapper for the AviFile Library" for working with Avi Files.
It is working well in my system for my inputs and getting output as expected.
My system configuration
os: windows 7
.net version: Visual studio 2010(version 4)
And when i tried to run the same code on different system with same
configuration as mine it is not working.
and also i tried to do with different configuration as shown below.
os: windows XP Service pack 2
.net version: Visual studio 2008 (version 3.5)
it is also not working.
no errors.
no warnings.
I'm getting exception showing "process or thread has changed since last step"
exception at
" if(getFrameObject == 0){ throw new Exception("Exception in
VideoStreamGetFrameOpen!"); }" in VideoStream.cs file.
I'm not getting the solution what changes i've make to run the code on
other system.
|
|
|
|
|
Please restate your question more clearly. First you say "no errors, no warnings," then you say you're getting an exception.
Also, "it is not working" doesn't tell anything useful. Give details.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
the problem is stated as follows.
I developed a my academic project named as object detection and tracking in video files.
I used "A Simple C# Wrapper for the AviFile Library" available in codeproject site only.
It is working well in my system.
I'm getting output in my system.
and I took the code from my system and installed in other system of my educational institution.
It is not executing.
I'll get front end and stops executing there itself without showing the input video.
I'm getting exception as Exception in VideoStreamGetFrameOpen
at line
" if(getFrameObject == 0){ throw new Exception("Exception in VideoStreamGetFrameOpen!"); }"
in VideoStream.cs file.
showing "process or thread has changed since last step" when i went on debugging step by step in a blue dot indicating at the above stated line of code.
I'm not getting the solution what changes i've make to run the code on
other system.
Is that video codec problem or some other??
|
|
|
|
|
helloww!!
i can't find all the codes (all functions of event handler of every type,i.e. button,listBox,etc., all functions of this types) can u please provide me the links where i can find all thes codes!!
thnxx
|
|
|
|
|
Sure, take a look at MSDN and read through the various help pages. They are all there.
|
|
|
|
|
Here are the most important codes:
483 498 379 531 478 239 943 438
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|