|
Hi,
I dont have an exact solution for this. But are you able to aceess your webservice from a remote machine. Please check that.
Thnaks
SGS.
|
|
|
|
|
Hi,
Yes, other machine can access the webservices from the hosting machine.
Thanks much,
Rene Xavier
|
|
|
|
|
Hi all,
I have a set of thumbnails stored in a database with info such as date created, date added, created by who, size etc.
I want to be able to display the thumbnails according to selection, ie user and/or date.
I'd like to be able to display the images in a datagrid on a Windows form but have no clue how to do it.
Is it possible?
Thanks
S.
|
|
|
|
|
I have created an MDI form that contains a main menu with File -> New and Exit and another Top menu Window ->Cascade, Horizontal cascade and vertical cascade
I also added the Context menu and made it as a popup menu which is not getting displayed at runtime
Please help me
|
|
|
|
|
hi,
if u have already set the property of the context menu in the form's properties to the name of the menu.... but still it is not appearing
then u have to give this code
<contextmenuname>.mdiParent=this
check out and this may work out....
regards
sukanya
|
|
|
|
|
Thanks for your reply
but i have already set it to parent but still when it dint worked i posted it in the forum
arnold
|
|
|
|
|
Hello guys.
I need some help on organization our project strategy.
1. What we need?
1.1. First of all we need a "module", that would handle most part of project logic and functionality. Let's keep call it "module" untill we can't find a phisical instance name for it.
Requirements:
- Single instance per computer
- Possibility to work all the time
- No need to have graphical interface
- Possibility to communicate with and be controlled by some GUI application
1.2. At second we need a GUI application that would communicate and control the "module". There are no special requirements for this application and it's clear how to create it. So that's not a point of interest.
2. What are the questions?
2.1. What kind of programm the "module" should be???
2.2. Maybe it's better to separate "module" functionality between several programs???
2.3. What kind of intercommunication between GUI app and "module" should we implement???
3. Our suggestions...
3.1. The "module" should be a Windows Service, but
- How to organize intercommunication with GUI app???
- It's not nessesary for "module" to work all the time, but is desired to be possible.
3.2. The "module" should be a SINGLETON COM EXE Server, but
- It could be created using ATL and we have pure documentation on ATL and it's much harder to code with ATL than with C#.
3.3. The "module" should be a kind of demon application, supporting some kind of IPC, but
- How to create windowless demon application???
- How to organize IPC???
3.4. The "module" should be a simple DLL, but implemented as SINGLETON (one instance per computer), but
- How to make DLL SINGLETON???
As a partner addition, 3.2, 3.3 and 3.4 could have a real Window Service as a starter and handler of "module" vitality.
So, if somebody could suggest any way (better the optimal) of solving the above problems, we'd appreciate it very much.
Thanx for an attention!!!
Vad
|
|
|
|
|
ASP.NET web service will be good for you:
1. It works all the time (without user logon to the machine).
2. Communication with other programs is easy: soap/http.
3. It is a single instance per machine (unless you want to install it multiple times).
4. It has no GUI unless you want to add GUI.
5. It can be implemented in one dll (the default).
6. It can be done in C# or any other .NET supported language.
However, it is NOT a windows service or com server.
Good luck.
My articles and software tools
|
|
|
|
|
i wnat to install Access file in a specified folder of client machine,in setup there is option of storing item in Application folder,how can i make it to install in some other folder? or on root of C drive?
thanks
-adnan
|
|
|
|
|
The best way to do this is making setup and deplyment project and set your project as the start up project of it it will make the whole project setted up and then the user can choose in which place he would setup this application
ByMindOnlyYouCanDoIt
|
|
|
|
|
I dont want user to set path of file..the file is a configuration file and i want to install in a particular folder without user intervention
|
|
|
|
|
Hello to all,
Plz help me out! I want to detect the point or coordinates of the lines in a .BMP image(not pixels). Means i want it in vector. plz help me guys.
Ashokk.
|
|
|
|
|
I installed my application on a computer and it worked fine for a day. The next day that I double-clicked on the .exe for the app I got this dialog box error message that pops up, ".exe (null) is not a valid win32 application". It's really strange, especially since as I said it worked fine after I initially installed it (i was even able to close it and load it again after installing, not until the next did this occur). I used .net's setup and deployment wizard to package the app, which had worked fine in the past. The only thing i can think of, when i was building the installer, i had a few warnings on the compiler being unable to find some of the dlls. Has anyone seen this occur before?
thanks
|
|
|
|
|
Hi,
My application is doing color dropout from the image and after dropping color only black & white image remains.Here i am using pointer.Firstly i am doing Grayscalling on the image and then doing constrasting my image.I am doing both function in single click but now main problem is that time.It is taking 8-9 seconds for complete whole process.Actually i want that in within 1 second.
Can anybody tell me which one is the best method in C#.net to achieve performance on this task?& why & how to use that method?
thanks
regards.,
|
|
|
|
|
Its a bit difficult to help you because you do not exactly explain what you do when grayscaling and contrasting. One hint I can give you is that you should avoid the usage of the Color structure. Both the creation (e.g.Color.FromArgb) and the use of its properties (R, G, B) are relatively heavy functions (at least when using them thousand or millions of times). In one of my projects with bitmap creation and colorcalcluations I could greatly improve perfomance by not using Color. This of course means that you will need to make some implemenations by yourself (e.g. a lightweight structure for exactly your purpose).
Also have a look at NProf. With this tool you can easily find what exactly takes so long in your calculations.
|
|
|
|
|
hi,
I really like urs suggestions but is that good way to use multithreading
into R,g,b properties.
my main algorithm is that in doing grayscalling i am taking r,g,b value of each pixel & multipling with .299 for red , .587 for green and .114 for blue and then giving that new value to pixel and this algorithm takes 4 seconds becoz it's calculating thousands of pixels.
Now for doing constrasting it taking another 4 seconds.Here is algorithm.
Now in doing Constrasting,
for each R,G,B if the value is < 0 R/G/B =0 and if value >255 then R/G/B =255
so it is taking another 4 seconds.
Now can u tell me that if i will use multithreading in this both algorithm it will give me more performance or not?
I had not used multithreading ever but as concepts of multithreading is giving faclity for dividine into thread i am hoping from multithreading.
so multithreading will work or not here?
or can u tell me which good approach will help me here.
montu3377
|
|
|
|
|
On most processors multithreading wont to do much here. Processors with Hyperthreading would probably gain a bit. You should wait with this until those multicore processors arrive
Are you suing the BitmapData class to get and set the pixel values? If not you should consider doing so.
The first part of your algorithm shouldnt work with floating points. Instead I would try to use integer arithmetic (instead of r = r * 0.299 try r = r * 299 / 1000).
The second part isnt clear for me. Why should the value be < 0 ?
If you like send me (part of) your code (for me its fun doing performance tweaks) to treborg@freenet.de.
|
|
|
|
|
|
Hi,
thanks but i am using same code as he had given but here for completation of whole thing it takes 8 seconds.
So do u feels that multithreading is best approach for color dropout for making it possible in 1 second.?
|
|
|
|
|
I don't know if multithreading will be of much help here, but I've got an additional link for you: Unsafe Image Processing[^].
With just a quick look at Christian's code I think he's using a similar approach, but in the MSDN article there's an additional optimization that's reducing the time to grayscale an image from 14 seconds (pure C# without unsafe code) to ~0.5 seconds, without further voodoo like multithreading.
mav
|
|
|
|
|
Hi,
Yeah Excellent i am not having any words for saying thanks to you.You had done great job for me.After reading this article and now i am tring to implement it so most probably i will do colordropout in 1-2 seconds due to this articles.
thanks a lot to You.
|
|
|
|
|
Hi,
I really like that article for performance so from that i had implemented Grayscale in 1 second but now contrasting function is taking 4 seconds so whole color filter takes 5 seconds.
so do you have any clue or idea?how to improve that?
|
|
|
|
|
Hi!
How about adding your contrast calculation in the loop where you're grayscaling the image?
That way you don't have to iterate over all the pixels twice.
Something like this:
PixelData* pPixel = PixelAt(0, y);
for (int x = 0; x < size.X; x++)
{
byte value =
(byte) ((pPixel->red + pPixel->green + pPixel->blue) / 3);
value = (value < threshold) ? byte.MinValue : byte.MaxValue;
pPixel->red = value;
pPixel->green = value;
pPixel->blue = value;
pPixel++;
}
mav
|
|
|
|
|
Hi,
I Have A parent window in that by pressing a HOTKEY A window(navigating window) opens By Pressing the Link in the Hotkey window it navigates to another page.My Question is If I defaultly closing The Parent window(i.e main window) The hotkey window(navigating) also must Be closed
Prabhakar.A
Software Engineer
|
|
|
|
|
Hi!
Why not just call the navigation window's Close() method in the Closing event handler of your main window?
mav
|
|
|
|