|
Thanks Christian ,
I will try and get a javascript.
Best regards
|
|
|
|
|
|
1. I don't mean to be a snob, but English is the only language used here. I don't know why you started off in English and then lapsed into Spanish(?).
2. This looks like an SQL question. You're better off posting it in the right forum.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
As addressed before, please use English. Also, please give your message titles some meaning. Make sure you place your message in the correct forum.
______________________
stuff + cats = awesome
|
|
|
|
|
This is SQL 101, I recommend buying a book on SQL and working through it. Even the books online that come with SQL Server will cover this for you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
you did show your message both in English and in Spanish.
There is nothing wrong with that.
As far as I am concerned, you can write in whatever language(s) you choose;
the fact remains you are most likely to get answers if English is used (also).
I am sorry you felt compelled to remove it.
|
|
|
|
|
Luc Pattyn wrote:
you did show your message both in English and in Spanish
Did he? I thought he started off in English and then went into Spanish.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
IIRC there where two English sentences, followed by their exact translation into
Spanish, then followed by a Spanish sentence saying "I would appreciate getting
an example" (my knowledge of Spanish is very limited, I did however recognize "ejemplo")
That one sentence was the only thing missing in the English version.
BTW: the forum guidelines (the first topic in the C# forum, by Chris)
as well as the article by Pete dont require you use English or English only.
Of course switching languages in the middle of a post would be a bad idea...
|
|
|
|
|
I'd have thought it was implicit by virtue of all the other posts being in English. I do think it's important to be tolerant of posters for whom English is not their first language, but I also think that we can't possibly have forums where people post in lots of languages, which, mostly, most of us will not understand.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian,
I am not sure what the "right" attitude is; being tolerant is certainly part of it,
bashing other languages is not. Maybe the basic question is: do we want
Chinese, Russian, French, ... programmers develop their own "CodeProject" sites
(segregation), or do we endorse one programmers community (integration) ?
One thing is clear to me, we should not expect the whole world to speak
one common language, that is just not realistic; and consider, if (and by the time)
we did it probably would be Chinese, not English.
I happen to live in the European Community, I know what language issues are
about. We are finally learning to work together, and we achieve that without
imposing a single language. Unfortunately, we do have a notion of "working
languages", the ones in which official EC documents can originate, and
the "other languages" (such as Dutch, my native language).
When I Google for something I find most hits are in English, but often some
are in French, German, ... and even some languages I cant recognize (because
I dont know them and/or my system does not have the fonts to show them properly).
It is a global world, wether we like it or not.
If the same were true for CodeProject, so be it.
We will have to let the wise men decide, or let it grow whatever way it grows...
BTW: I tend to answer in the language of the question (if I know it sufficiently),
even so if I know very well the OP speaks Dutch or French.
That's out of courtesy towards the other members.
|
|
|
|
|
Hello -
I'm trying to convert the code on this page:
http://msdn2.microsoft.com/en-us/library/aa379608.aspx
to C#.
Does anybody know if there is a better way to do this and/or have any pointers for me?
Right now, I am stuck on this section:
<br />
if (bDaclPresent)<br />
{<br />
if (aclSizeInfo.AceCount)<br />
{<br />
for (i=0; i < aclSizeInfo.AceCount; i++)<br />
{<br />
if (!GetAce(pacl, i, &pTempAce))<br />
__leave;<br />
<br />
if (!AddAce(<br />
pNewAcl,<br />
ACL_REVISION,<br />
MAXDWORD,<br />
pTempAce,<br />
((PACE_HEADER)pTempAce)->AceSize)<br />
)<br />
__leave;<br />
}<br />
}<br />
}<br />
<br />
<br />
pace = (ACCESS_ALLOWED_ACE *)HeapAlloc(<br />
GetProcessHeap(),<br />
HEAP_ZERO_MEMORY,<br />
sizeof(ACCESS_ALLOWED_ACE) + GetLengthSid(psid) -<br />
sizeof(DWORD));<br />
<br />
if (pace == NULL)<br />
__leave;<br />
<br />
pace->Header.AceType = ACCESS_ALLOWED_ACE_TYPE;<br />
pace->Header.AceFlags = CONTAINER_INHERIT_ACE |<br />
INHERIT_ONLY_ACE | OBJECT_INHERIT_ACE;<br />
pace->Header.AceSize = sizeof(ACCESS_ALLOWED_ACE) +<br />
GetLengthSid(psid) - sizeof(DWORD);<br />
pace->Mask = GENERIC_ACCESS;<br />
<br />
if (!CopySid(GetLengthSid(psid), &pace->SidStart, psid))<br />
__leave;<br />
<br />
if (!AddAce(<br />
pNewAcl,<br />
ACL_REVISION,<br />
MAXDWORD,<br />
(LPVOID)pace,<br />
pace->Header.AceSize)<br />
)<br />
__leave;<br />
Thanks a lot!
|
|
|
|
|
I'm not very good at c++ but I think this syntax means the code is identified in c++.in c# there is a middle language that makes converting easy.there must be somthing like this in c++ too.
about using google maps .my problem is somthing else I want to show any kind of map in c#.do you no any way to disighn such a control in c#?
sarv
|
|
|
|
|
sarvenaz84 wrote: I'm not very good at c++ but I think this syntax means the code is identified in c++.
What syntax ?
sarvenaz84 wrote: in c# there is a middle language that makes converting easy.there must be somthing like this in c++ too.
No, C++ does not compile to a managed runtime.
sarvenaz84 wrote: about using google maps .my problem is somthing else I want to show any kind of map in c#.do you no any way to disighn such a control in c#?
Google maps will work in a winforms app if the PC is online, via a web browser control. Dundas sells mapping controls, which I assume work offline.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: No, C++ does not compile to a managed runtime.
Are you sure of that? Then what is this forum[^] for?
-----
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
It's for the managed version of C++/CLI, which is not, strictly speaking, C++ but rather C++ with .NET extensions that sits on top of the .NET runtime. This is usually referred to as managed C++ or C++/CLI and not just C++.
Christian's statement that C++ does not compile to a managed runtime is entirely correct and accurate. Managed C++ (or C++/CLI) does compile to a managed runtime.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
I didn't catch the fact that savenaz84 was not talking about the managed version of C++.
-----
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
Dear friends,
i have a problem in binding data to ASP.net 2005 Tree control.
i have fetched data from database. Using for loop i colud create treeview nodes, i have 10,000 recordes to display so it takes more time in using for loop and creating the treeview.
i want to assign the data source to the treeview as we assign to datagrid?
how to do that?
please help me.
any sample code or link for sample code.
thank u
by
joe
|
|
|
|
|
Hi!
The SelectionChanged event is raised when a datagridview is constructed, when the datasource is assigned. How can I avoid that my actions in the event handler are only applied when the user changes the selection?
Thanks for suggestions
Jörg
|
|
|
|
|
Are you saying you only want to do something when the user clicks on a different row from the one that he's currently selected? You might want to look here[^] for a tip.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
I want to add a hotkey (for e.g. <crtl> + t) to focus one of my TextBoxes im my From. How to do that?
_____________________________
...and justice for all
APe
|
|
|
|
|
The easiest way is the HTML accesskey[^] attribute.
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".
|
|
|
|
|
Either put a Label with the according shortcut in front of your TextBox (with respect to tab order) or set KeyPreview to true for the Form and handle key presses yourself.
In that case you can use the TextBox.Select() method.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Ok, now i've tried this:
private void VSAddressRegisterForm_KeyPress(object sender, KeyPressEventArgs e)<br />
{<br />
Keyboard keyboard = new Keyboard();<br />
if (keyboard.AltKeyDown && e.KeyChar.Equals('d'))<br />
{<br />
e.Handled = true;<br />
textBoxName.SelectAll();<br />
}<br />
<br />
}
... but when I use the <alt>-key my Forms parents main-menue got focus
_____________________________
...and justice for all
APe
|
|
|
|
|
Just use the first suggestion: Put a label next to your TextBox, set its Text to something containing "&d" (A&ddress) and assign the tab order to all controls on your form in a way that the label is immediately in front of the textbox.
No additional programming required - works every time.
Oh, and by the way (although I didn't actually try your code) - why are your creating a new Keyboard object? Have you taken a look at the KeyPressEventArgs ? They contain everything you need...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
Someone asked me to help him with the following piece of software, and I don't know even where to start looking. Will this be a big project?
We’re busy with a project developing a website, the background is the tricky part. We’re supplying a scanner that will scan to a FTP site. That part is the easy one, it can scan in pdf and jpg format. The delivery notes they’re scanning will have barcodes on, we need software to read the barcodes and rename the file names according to the codes.
Regards
ma se
|
|
|
|