|
hi
i must working on StgOpenStorageEx(ole32) bez. i used windows xp
and in www.pinvoke.net
give this defined
DllImport("ole32.dll")]
static extern int StgOpenStorageEx([MarshalAs(UnmanagedType.LPWStr)] string
pwcsName, uint grfMode, uint stgfmt, uint grfAttrs, ref STGOPTIONS
pStgOptions, IntPtr reserved2, [In] ref Guid riid,
[MarshalAs(UnmanagedType.IUnknown)] out object ppObjectOpen);
my problem is in this parameter (ref STGOPTIONS pStgOptions) what i must value give it?????
im searching and am trying
if u can please help me
|
|
|
|
|
The page on pinvoke that shows the definition has an example too. Why don't you have a look at it?
|
|
|
|
|
hi
thanks for answering
but this function any example or detailes not found on it>>
can u give the page or site
i enter msdn but it not enagh
THANX
|
|
|
|
|
|
No real point in replying to the OP. They ask the same garbage over and over.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
How many weeks (months?) have you been trying to call 1 method for now?
|
|
|
|
|
Whenever I try to encrypt or hide my strings my program immediately crashes when I double click the .exe. Does anyone have a clue of why this may be happening. I'm using 9Rays.net Obfuscation.
Thanks,
Buckley.
|
|
|
|
|
It might be another setting in the 9rays software causing the crash. Have you asked 9Rays about it?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Buckleyindahouse wrote: why this may be happening. I'm using 9Rays.net Obfuscation.
Try contacting 9Rays and see what they say.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I draw the string("ABCDEFGH")or Square in panel using c#.I want to rotate the shape
in any angles.Please help me how to find the Center point and rotate the shape.
Note: I used DrawLine() method to draw shapes
|
|
|
|
|
Create a custom panel control and you'll have to do your rotational transforms in the Paint method of your custom panel control. Do an article search, there are many on how to do this.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
my application contain three forms:
frmMain(mdiContainer)
frmEditable
frmTools
private void frmEditable_MouseDown(object sender, MouseEventArgs e)
{
choice1Enable = true;
if (choice1Enable)
{
Generating(0, e.X, e.Y, 20, 20);
}
}
i want to capture this events using delegate..it is located in frmEditAble form.
actually i want that when a user click on frmTools's Rectangle label. it should be displayed a rectangle on frmEditable thorugh delegate..
how can i do this
hghghgh
|
|
|
|
|
I'm not sure I entirely understand your question, is this what you are looking for?
First, you need to create an EventArgs class that will notify the listeners which rectangle should be genereated:
public class NewRectangleEventArgs : EventArgs
{
public int ID;
public int X;
public int Y;
public int Width;
public int Height;
public NewRectangleEventArgs(int ID, int X, int Y, int Width, int Height)
{
this.ID = ID;
this.X = X;
this.Y = Y;
this.Width = Width;
this.Height = Height;
}
}
Next, you need to create an event in your for class that others can register to:
public EventHandler<NewRectangleEventArgs> OnNewRectangle;
Now, other classes can register the event when they have a handle to your form:
form.OnNewRectangle += new EventHandler<NewRectangleEventArgs>(NewRectangleEventHandler);
With NewRectangleEventHandler being a method like:
public void NewRectangleEventHandler(object sender, NewRectangleEventArgs args)
{
}
Finally, your form needs to raise the event whenever a new rectangle should be generated:
if(OnNewRectangle != null)
OnNewRectangle(this, new NewRectangleEventArgs(0, e.X, e.Y, 20, 20));
Hope this helps
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hi
i have problem with this code
objCommand.Parameters["@nopersoneli"].Value = Int32.Parse(vpost.txtNoPersoneli.Text);
:error
Input string was not in a correct format
why?
please help me
|
|
|
|
|
Most likely you have illegal characters in vpost.txtNoPersoneli.Text
The need to optimize rises from a bad design
|
|
|
|
|
What is the type of objCommand?
What is your vpost.txtNoPersonali.Text?
|
|
|
|
|
txtNoPersoneli forexample=45
|
|
|
|
|
What is objCommand? It's possible that your objCommand.Parameters["@nopersoneli"].Value gets string and you get it an integer variable.
and what is this "@" for?
|
|
|
|
|
Most likely you have some type of invalid character in vpost.txtNoPersoneli.Text...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi.
Please write your snippet code here.
|
|
|
|
|
try
objCommand.Parameters.add["@nopersoneli"].Value = convert.toint32(txtNoPersoneli.Text);
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
public class Minimax
{
static void Main(string[] args)
{
// generate a simple game tree, starting with the root
Tree tree = new Tree(0);
// children of the root
tree.children = new Forest(new int[] { 0, 0 });
// children of the left child of the root
tree.children.first.children = new Forest(new int[] { 0, 7, 9 });
// children of the right child of the root
tree.children.rest.first.children = new Forest(new int[] { 4, 8, 6 });
// children of the leftmost child of the left child of the root
tree.children.first.children.first.children = new Forest(new int[] { 5, 3, 1 });
// write the expected and calculated minimax values to the console
Console.WriteLine("Expected minimax value is 5");
Console.WriteLine("Calculated minimax value of the tree " + tree.Minimax(true));
//Console.Write(tree.children.first);
Console.WriteLine("Press any key to exit ...");
Console.ReadKey();
|
|
|
|
|
And what is your question after all?
|
|
|
|
|
My question after all is about how to add a code with the variable that holds minimax value of the node, the node having a variable that holds the board position bearing in mind that the value of this valuable can be an array of length 9 which makes values X and O (or 1 and -1 talking of integers) leading to generating a tree automatically by computing successor states for the board positions represented by a particular code, starting with the empty board for the root node, recursively computing successors until terminal nodes reached.
|
|
|
|
|