|
Hello,
I am creating a toolbar for IE, almost like google toolbar. I want to give options for websearching, save current web page, and it should cofigurable from XML. I created a toolbar and it is visible in my IE, but I am struck in websearching part. Anybody please help me or give me the tips, how google and yahoo searches the web from its toolbar,and how can I implement it. please help me.
Thanks in advance for your time.
|
|
|
|
|
Are you asking about how to make the toolbar work? Or, what URL to send searches to? The latter is very easy: Just go to the search engine you want, type in something simple like "test". Then, after that gets submitted, copy the URL and replace the value you used with the search query. For instance, Google's would be: "http://www.google.com/search?q={0}".
Michael Flanakin
Web Log
|
|
|
|
|
how can i convert code from VB to C#:
( i am new to c#)
Public Function GetHiWord(ByRef lparam As Integer) As Integer
' This is the HIWORD of the lParam:
GetHiWord = lparam \ &H10000 And &HFFFF
End Function
Public Function GetLoWord(ByRef lparam As Integer) As Integer
' This is the LOWORD of the lParam:
GetLoWord = lparam And &HFFFF
End Function
Thanks
|
|
|
|
|
I believe this is right:
public int GetHiWord( int lparam )
{
return lparam \ (0x10000 & 0xFFFF)
}
public int GetLoWord( int lparam )
{
return lparam & 0xFFFF
} Michael Flanakin
Web Log
|
|
|
|
|
I think it should be
GetHiWord(ref int lparam)
and
GetLoWord(ref int lparam)
since the value is being passed by reference rather than value type.
---------------------------
He who knows that enough is enough will always have enough.
-Lao Tsu
|
|
|
|
|
You're right. The only reason I didn't do that was because nothing was done with the value. I figured that, if it wasn't being changed, then there wasn't a reason to have the reference. I may be wrong tho.
Michael Flanakin
Web Log
|
|
|
|
|
But the VB code is also returning an Integer (it's a function, not a sub). IMO, the original VB code was flawed since it was taking an Integer reference but still returning a separate Integer without actually modifying the parameter value (hence, no need for ByRef and should've been ByVal instead).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks,
There is no \ in c#
so i guess i should do:
public int GetHiWord( int lparam )
{
return lparam / (0x10000 & 0xFFFF); // or ? return lparam / 0x10000 & 0xFFFF;
}
public int GetLoWord( int lparam )
{
return lparam & 0xFFFF ;
}
|
|
|
|
|
You're right. Good catch.
As for whether or not to use parens, I'm not sure which operator will execute first. I would suggest using the parens for clarity, just to make sure the point gets across.
Michael Flanakin
Web Log
|
|
|
|
|
Hi.
I'm new to the Sharepoint portal server 2003 (or any other sharepoint for that matter) and I need to get to know how to develop stuff for it.
I've messed around a bit with building webparts and now I want to know how to make custom lists.
However i'm having trouble finding any good rescources on the subject.
Is there anyone here that can point me to some good forums/guides/tutorials/SDK's/etc. ?
p.s. I have been through MSDN and I don't seem to be able to find anything other than developing webparts there.
|
|
|
|
|
troels_sorensen wrote:
I have been through MSDN and I don't seem to be able to find anything other than developing webparts there.
And you won't...yet. There will be better WebPart support in .NET Framework 2.0 to be released in the beginning of 2005 (SQL Server "Yukon" is holding it up).
We've been working with it here and some associates upstairs in our complex use it as the base for their product as well. We all contend that the documentation - for what little there is - sucks for SharePoint.
For one, when you install SharePoint Services on your Windows Server 2003 box, you have to manually copy the Microsoft.SharePoint.dll assembly to your development box. Some SDK, huh? Examining that with ildasm.exe that comes with the .NET Framework SDK is definitely handy, or use a good decompiler like .NET Reflector[^].
You should also check out http://www.sharepointcustomization.com/[^]. It's not the greatest, but it does have examples.
Finally, get yourself a copy of FrontPage 2003. Now, I'm not big on WYSIWYG editors, but FP 2003 is a vast improvement - event for HTML editing capabilities - over previous versions. It also specifically targets SPS with a lot of great support. It's well worth it, IMO.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Yeah... documentation.... guess I'll just have to guess then, since microsoft wants it that way.
Looking forward to the new version!
Thanks for the link.
|
|
|
|
|
I'm developping an application where I need to serialize objects. But the properties of these objects may change during the developpment as I could add new options.
For instance, I may have this
class Car
{
// version1
string ModelName;
int Speed_Mph;
}
And then I want to serialize an array of Car into a binary file (foo.sav)
Later, I add the color :
class Car
{
// version1
string ModelName;
int Speed_Mph;
// version 1.1
string Color;
}
Now, if I try to used the deserialization function with foo.sav, it won't work, because foo.sav didn't contain the Color properties for Car.
What is the easiest / msot efficient way to solve it?
I have several ideas in mind, but I don't know the better ones.
The most efficient one seems to be to write my own ISerializable interface, and start by reading the version. It works, but I'm afraid it's a lot of work, as I need to assign the keys one by one, needn't I?
|
|
|
|
|
One way would be to implement the ISerializable interface and take these things into account yourself. Another way - especially if your assemblies are versioned (or better yet, strongly named) - is to extend the SerializationBinder and override BindToType so that when an older Type (since a Type name includes not only the fully-qualified class name but also the assembly information) you bind it to your new Type. You'd still have to take into account any changes, but this is a common and pretty efficient way of solving the problem of versioning. See the documentation for the SerializationBinder method in the .NET Framework SDK for more information and an example.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
no i have nothing from what u say but i wanna the whole story of using the barecode if have a breif idea about the way to handle the barecode numder from the any kind of serial barecode scanner i dont know any thing about that stuff and i ask any one to help me by him self or by sending me any url to help me in that stuff
and i search and found all the code write in that is for the way to print the barecode but i wanna to input it and how to handle it
thank u and i hope i make my self more clearar
|
|
|
|
|
See your thread in the VB.NET forum. Please keep the cross-posting to minimum.
RageInTheMachine9532
|
|
|
|
|
Dear Guys:
I would like to build a GUI-Application(in BCB5) that can "simulate" behavior just like "DOS Prompt", it should also get vertical-scroll bar(can view history command) & Block-Marking for copy function.
>dir
edit.000 0 3-24-04 11:49
edit.001 0 3-24-04 11:49
edit.002 0 3-24-04 11:50
>asdf
Unknown command "asdf"
>x
^cursor blinking here~
Would you please hint me what component I should choose?(MEMO?...)
BR
JP Chou
|
|
|
|
|
And your asking a question about Borland C++ in a Microsoft C# forum why.....?
Your question is much better suited for a Borland Forum.
RageInTheMachine9532
|
|
|
|
|
I'm sorry!I thought the concept/algorithm is the same...
Anyway~Thanks for your remind...
|
|
|
|
|
The problem came in when you asked for components. The components that come with the Microsoft developement environments are different from those that come with Borland's.
But in your case, I don't think the components will be of much use, except for a TextBox anyway. How complex this gets depends on the command set you want your Shell to understand and what you want it to do.
If you want to just pass what is typed in your shell to a command prompt and get information back, that's not too hard for us Microsoft user because we can tap into the standard streams of a console window pretty easily in the .NET world. I don't know that is going to work in Borland's.
If you want to write a replacement for a Console window, you've got a lot of work ahead of you. Parsing command lines, executing other programs, any batch commands and scripting, ...
It all depends on what you want it to do...
RageInTheMachine9532
|
|
|
|
|
HI,
I can't find out the end of line in C#. It's like chr(13) in VB. Anybody helps me?
My project is: I want to display a text file in RichTextBox. Then, I want to capture all the text to fill in a text box. And I want to replace the end of like by ";".
Thank a lots
Don't smile at me if silly question, 'cos I'm a beginner to C#
|
|
|
|
|
Are you looking for the "\n" or System.Environment.NewLine ?
----------------------------------------------------------------------
T Manjaly
C# Tutorials and samples : http://www.dotnetspider.com
|
|
|
|
|
Thank you!That's right.
txtString=txtString.Replace("\n",";");
|
|
|
|
|
i am doing my final year project on remote desktop control.Till now i have captured the image of remote desktop.Now i want to control it remotely.tell me some functions to do this.I want to do this in C#. As I am doing my hole project in C#
mughalali
|
|
|
|
|
Simply capture the screen coordinates of the mouse click and translate those through to the remote desktop.
Honestly, though, .NET is far too high-level at this point for an effective remote desktop application. Terminal services - which RDP uses - actually uses a virtual frame buffer that "intercepts" the output destined for the graphics card and displays that in your remote client. So if a program were to draw a simple line, that line would be drawn to the virtual frame buffer instead of having to grab an entire screenshot in a loop. Using this much more efficient approach requires low-level code and a lot of functionality in the Microsoft DDK. While it may be possible to P/Invoke what you need, there would be a LOT to do. If you're serious about carrying this project through, you should take a look at this approach that the major commercial solutions use.
Microsoft MVP, Visual C#
My Articles
|
|
|
|