|
No, as this is not a server version of Windows, the IIS is limited to ten users.
IIRC, you can hack the registry so that IIS allows 39 users, but above that the system becomes instable.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi All,
I am working on project that involves adding/removing fonts in Windows\Fonts, I already tried the follwing steps programmatically:
1. Delete from registry
regkey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts", True)
regkey.DeleteValue(s)
2. Delete from C:\Windows\Fonts\
Above steps does not work, it only removes the entry of the font in the registry but I was not able to delete the fonts in C:\Windows\Fonts\
Any Idea how to solve this problem of mine? any help will surely be appreciated
|
|
|
|
|
batanglasang wrote: I already tried the follwing steps programmatically:
Where did you get that approach from? Are you working from some book, article or example?
batanglasang wrote: Any Idea how to solve this problem of mine?
I generally try to solve problems by consulting the documentation[^]
|
|
|
|
|
I got it from an article in the web, I forget exactly where. Can you show me some codes on how to do this?
Thanks!
Thanks/Regards
Sidney
|
|
|
|
|
I tried calling the API you suggested, but it's still not working
Please help me, can you show me some codes? I am trying to delete Windows\Fonts not font resources in a project but the actual fonts in the C:\windows\fonts.
Thanks
Thanks/Regards
Sidney
|
|
|
|
|
batanglasang wrote: Please help me
batanglasang wrote: but it's still not working
If you can't provide any more specific information than "it's still not working" I am done helping you. On the link I previously gave you... at the bottom there is a "See Also" section with a "Fonts and Text Overview" link. I strongly suggest you read the documentation.
batanglasang wrote: can you show me some codes?
I also suggest you read the top message in this forum titled "How to get an answer to your question", pay attention to item #2.
|
|
|
|
|
led mike wrote: can't provide any more specific information than "it's still not working" I am done helping you
He probably expects people to be mind readers
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi,
I already read the documentation, sorry if you misunderstood my question that you became a "Mind Reader". Fonts and Text Overview are for project resources I don't know if you are aware of the topic I have posted "Add/Remove Windows Fonts Programmatically" what I am trying to do is actually removing fonts from the Windows Fonts table and not those that I want to add in my project and remove afterwards I am done using it.
To explain further here is what my project requirements are:
1. A watch folder in a network drive has been setup where users can add and remove fonts for global use.
2. My application is installed in multiple work stations inside Local Areak Network and will be watching #1, if there are fonts in the watch folder that does not exist in their local machine, my application should add it (this part is already working perfectly fine)
If somebody delete fonts in the watch folder, what my application would do is send out a notification to all users that a font has been deleted from the watch folder "AND IT SHOULD DELETE THE LOCAL MACHINE FONT (Windows Font)" as well.
I hope that by giving this requirements you'll understand what I am trying to achive and that what you suggested is totally out of line co'z "Fonts and Text" focus on your Visual Studio Project Resources and not the Windows Font Environtment.
Thanks/Regards
|
|
|
|
|
batanglasang wrote: Fonts and Text Overview are for project resources
I don't know where you learned to read but you need a refresher course
"The RemoveFontResource function removes the fonts in the specified file from the system font table."
batanglasang wrote: (this part is already working perfectly fine)
Depends on your definition of "working fine". Based on your post I doubt you used AddFontResource to do that so I would not consider it "working fine".
batanglasang wrote: sorry if you misunderstood my question that you became a "Mind Reader".
I didn't misunderstand anything. You did not provide any information until your last post and as I stated before, it's to late, I have lost interest in helping you.
|
|
|
|
|
It's ok I found the solution I am looking for. Thanks.
|
|
|
|
|
batanglasang wrote: It's ok I found the solution I am looking for.
translation: You hacked a solution that may or may not be supported if changes to the OS system font handling occur. It's ok though, you found a solution. Whatever
|
|
|
|
|
I am not so familiar with using .dll.
I want to realize the following:
I have a .exe project. From this I want to call some newly added .dll functions. For the .exe project, I just use reflection to call the .dll funcitons by their function names. Now the problem is that how the .exe project can take into account the newly added .dll functions?
For a .sln project, of course I can add any .dll by using "add reference". But once it is compliled into .exe, how include then?
thanks.
|
|
|
|
|
When u install a Game
Have u ever noticed that there are .dll files in a Directory
Well that it.
U need to put the Ref .dll with the .exe
if those dll are closed (ofcourse)
if they are not (u can actually see the code inisde)
just copy pasdte the code to an myAddons.cs custom file u create and compile
Have Fun
Never forget it
|
|
|
|
|
thanks.
but I still don't understand what you mean.
"U need to put the Ref .dll with the .exe", how? actually this is my question.
that is: how let the .exe to find .dll and call it.
thanks again.
|
|
|
|
|
While Adding A Ref in visual studio
u actually creates an instane of that dll in the \bin\Debug folder
Check it...
The dll "walks with u"
if the dll can be decompiled and u can open it with VS and see it's Content
well that's it, just copy the function to a .cs file under your namespace
And god Speed
Have Fun
Never forget it
|
|
|
|
|
I am trying to update row in sql database but unable to do it .. this is what i have done so far ..
protected void UpdateCommand(object source, DataGridCommandEventArgs e)
{
Response.Write("testing");
SqlConnection conn = new SqlConnection(connectionString);
try
{
conn.Open();
string database1 = "Level1";
TextBox UserName = (TextBox)(e.Item.Cells[2].Controls[0]);
TextBox MacAddr = (TextBox)(e.Item.Cells[3].Controls[0]);
DataSet ds = new DataSet();
SqlCommand myCommand = new SqlCommand("UPDATE " + database1 +
" SET UserName = '" + UserName +
"', MacAddr = '" + MacAddr+" ' ", conn);
myCommand.Connection = conn;
myCommand.ExecuteNonQuery();
}
catch (Exception ex)
{
Response.Write(ex.Message);
Response.End();
if (conn != null) conn.Close();
return;
}
finally
{
Response.Redirect((string)Session["PreviousURL"]);
}
conn.Close();
DataGrid1.EditItemIndex = -1;
can someone help me how to update after we clik edit button in each textbox in a row ??
Thanx !!
|
|
|
|
|
Why all The mess
Why not just using the : SqlDataAdaptor
i've been using OdbcDataAdaptor, & OledbDataadaptor
and it's easy
no 100 Line codes, but half and even less
Try it
It's actually creates a conector betwen your DB and your Data Grid
Have Fun
Never forget it
|
|
|
|
|
ya i know its really using OledbDataadaptor but my database is not in MS Access but in Sql Server... so everything i need to write is using sql commands .. can u help me with that ?
|
|
|
|
|
|
Here is a Better Article [^]
that got all of the connection (Odbc,Oledb,Sql,Oracle)
That realy Good
Have Fun
Never forget it
|
|
|
|
|
Dear Friends,
How we can keep data after inserting in formview controls?.
When i'm inserting a record formview will fire a method, that method is calling a stored procedure. If Stored Procedure is return error i want to keep data in my formview.
How i can solve this issue?
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
Hi...
I have a really strange behaviour in a piece of code where I'd like to encrypt and decrypt data. I wrote a small program to test, when I saw that everything was working fine I did a copy/paste of that code in my main app...
I can't understand why: in my main app the decryption, when I do the FlushFinalBlock(), throw me a Bad Data...
The strange thing is that when I encrypt in my main app, the decryption in my test program works fine...
any idea?
Thanks
|
|
|
|
|
I got a similar behaviour when I didn't close the encrypt stream correctly. It didn't write the final bytes until I did that.
|
|
|
|
|
I have written a small app for displaying a web site, the app will check where the navigation is going etc before alowing to proceed.
everything works well apart from one thing, one of the pages has a map written in flash, now when viewed using ie you can drag an item around the map, when i view in my app the flash map is very jerky and doesnt alway move the item round the map... i am wondering if there is something in the program which could be taking the focus and not allowing the flash to work properly...
anyone got any ideas ??
Thanks
Lee
|
|
|
|
|
We've seen various issues with Flash as well, and with the WebBrowser in general. There seems to be some mouse activation/clicking bugs that are caused by the managed WebBrowser. I'd try using the unmanaged mshtml COM component (upon which the WebBrowser is based) and see if anything is fixed for you.
|
|
|
|