|
Thanks a lot for your great help ,
Michael Sync wrote: then create the virtual directory
Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?
Michael Sync wrote: The main reason why we need megaui tool is that it allows us to add the dlls without republishing the application
What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?!
Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes?
Thanks a lot again
|
|
|
|
|
DotNetWWW wrote: Is it obligatory to create a virtual directory? Or it is enough to share that publish folder on server?
Is your server the web server? If yes, it's not necessary to create the Virtual directory. The main reason why we create the VD is that we don't want to use the "Folder Sharing" for that. If someone wants to install the ClickOnce application, they will access this application through URL..
DotNetWWW wrote: What is the problem if we republish the app?The clickonce deployment checks the app for updates when the client runs it , isn't it?And if we use "The application is available online only" , do we need to be worry about updates?because the app always runs the latest version directly from server?!
No. You don't need to worry about the updates but we don't use that option in our projects.
DotNetWWW wrote: Also my app has some fonts required to be installed and some files to be copied to client Application Data Folder , I think I should create a windows installer setup for that , yes?
I don't know about that.
|
|
|
|
|
Thanks
Michael Sync wrote: No. You don't need to worry about the updates but we don't use that option in our projects.
Why?
|
|
|
|
|
DotNetWWW wrote: Why?
Because we want our application to run offline too. Because we don't want our employees to go back if the connection is down.. Another reason is that we used the dynamic updates (from code) to get the latest updates. So, we want to disable "The application should check for updates" option.
|
|
|
|
|
Thanks agagin ,
My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right?
And when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?
|
|
|
|
|
DotNetWWW wrote: My app is based on SQL Server 2005 , so if the server is down , running the application in offline mode will be useless , Am I Right?
Yeah. You are right.
DotNetWWW wrote: when I use Online Only option , the "ApplicationName.application" runs the latest version , Am I Right?
Yeah. You are right.
|
|
|
|
|
Thanks , another point is that when I use Online Option , Where the application.exe.config for each client is saved? as I told you that my app connection string is stored in app.config?
and in Online Only option , the app is not cached in clinet machine anymore , Am I Right?
Thanks a lot , my friend
|
|
|
|
|
Hi,
I'm a WMC newbie and i need some serious help concerning the click-to-record feature as described below:
I need to schedule a TV recording programmatically. To do this, i need to catch the event whenever a user clicks "Record" and prompt him/her with a dialog. The user will then have the choice of performing a "regular" schedule or a schedule from a proprietary service.
Can you plz give me a kickstart on the issue above?
Thank you.
Ps. Sorry for posting here but i have no idea as where i can post this message
Carpe diem,
Krg
|
|
|
|
|
Private Structure CUSTOM_EXPORT
Dim Name_Renamed As String
Dim ViewName As String
Dim List() As String
Dim filter_Renamed() As String
Dim ColHeadName() As String
Dim ColWidth() As Object
Public Sub Initialize()
ReDim List(255)
ReDim ColHeadName(255)
ReDim ColWidth(255)
End Sub
End Structure
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dim udtCustom() As CUSTOM_EXPORT
udtCustom(1).List(0) ="Area Code"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I face with "Area Code" is not assigned to udtCustom(1).List(0) ,
Object Reference not set to an instance of an object.
pls solve my problem,
what other is needed i do for this problem,
THANKS FOR ALL!!!!!!!!!!!!!
|
|
|
|
|
Meenge wrote: Dim udtCustom() As CUSTOM_EXPORT
udtCustom(1).List(0) ="Area Code"
1. You should set the size of array while you are declaring udtCustom variable.
2. You should initialize the array which are included in structure. Note: Initialize() is not the constructor of Structure.
For example :
Private Structure CUSTOM_EXPORT<br />
Dim Name_Renamed As String<br />
Dim ViewName As String<br />
Dim List() As String<br />
Dim filter_Renamed() As String<br />
Dim ColHeadName() As String<br />
Dim ColWidth() As Object<br />
Public Sub Initialize()<br />
ReDim List(255)<br />
ReDim ColHeadName(255)<br />
ReDim ColWidth(255)<br />
End Sub<br />
End Structure<br />
Sub Main()<br />
Dim udtCustom(1) As CUSTOM_EXPORT<br />
udtCustom(1).Initialize()<br />
udtCustom(1).List(0) = "Area Code"<br />
Console.Write("")<br />
End Sub
|
|
|
|
|
Hello,
My customer is using my app, which is currently running on .NET Framework 1.1. I want to upgrade it to .NET 2.0, but some of the computers might not have the .NET 2.0 Framework runtime installed. I am already using my own autoupdate mechanism and changing to ClickOnce at this time is not an option.
I googled a bit, and I only found a couple of solutions that need to use Group Policies with Active Directory. Since my customer doesn't use Active Directory, is there something else I can do?
Thanks in advance,
|
|
|
|
|
Since you have no domain your options are very limited. Every machine has it's own account (SAM) database, and hence, every administrator account is different.
You can walk around and visit every machine and install .NET 2.0 and your applicaiton.
If you have some kind of distribution system already setup, you can use that.
If you don't have a distribution system, you can write your own, but you'll also have to verify that every machine has the same name and password for the Administrator account, which, again, requires you visit every machine.
Install SMS 2003, or what is MS calling it now? System Configuration Manager?? on a server. Requires a domain anyway...
Convert the network to domain.
Your biggest problem is that every machine has a different admin account. This SEVERELY limits what you can do. They only rememdy for this is a domain environment.
|
|
|
|
|
Thanks for your reply, Dave. Unfortunately, setting up a domain is not possible. And visiting every machine also can't be done (some are in other cities).
Here is what I will do:
1. Create a little .NET 2.0 WinForms app that only says "Hello World from .NET 2.0"
2. Publish it with ClickOnce, configuring the setup to download the framework from the LAN server
3. Add a little code to my app (still in 1.1) to detect if 2.0 is installed, and if not, launch the ClickOnce URL.
And a week or so later, I will deploy the 2.0 version.
Thanks again,
|
|
|
|
|
I have a project where I am using an access database. I have the db in the same directory as the source code so i can adjust the tables and so on, but i want to be able to copy the latest version of the db to the debug directory when i build the project so I dont have to keep copying the file over by hand.
I have been using VS 2005 for developing, and have use dit for years now, but if this functionality exists, it has escaped me all this time. Any suggestions?
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|
|
In the the solution explorer, navigate to the folder that has your database (if it's in the same dir as the project file, then just navigate to the project root). On the toolbar IN the solution explorer there is a show all files button, click that. You should now see items that are on the filesystem, but not in the project. Right click on your DB and select "Include in project". After the item is added, select it and press F4 to bring up the properties window. Change the Build Type to Content (this would mean it could be include in an installer) and then change the option for "copying to output" to "always" or "if newer".
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Awesome! Thank you, worked like a charm
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|
|
hi all ,
How can I do something thay when user does not enter anything in maskedtexbox , it return string String.Empty?
For example if my mask is "00/00/00" , if user does not enter anything , the text property returns "__/__/__" , ?????
Thanks
|
|
|
|
|
|
I'm building an application where I want to use multiple split containers e.g A split container that his panels contain split containers themselves ( either both,one of them or none) and so on recursively.
The problem is that the behavior of the splitters and resizing is hierarchic, meaning the first main splitter affects the size of all other sub-splitter panels but a sub splitter doesn't affect a panel that belongs to a parent splitter.
I'm trying to change the behaviour so that it will have a "flat" behavior - meaning each splitter movement will only affect the panels next to him and not the other panels ( like a table/grid behavior).
Anyone have an idea how to do that?
Thanks
|
|
|
|
|
uribraun wrote: I'm trying to change the behaviour so that it will have a "flat" behavior - meaning each splitter movement will only affect the panels next to him and not the other panels ( like a table/grid behavior).
Anyone have an idea how to do that?
Probably through some custom control class.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi all.
it is my first program on Framework
sow I need little help.
<br />
<br />
char Name[255]={0};<br />
char *p = GetCommandLineA();<br />
bool start = false;<br />
int from = 0;<br />
<br />
for(size_t i=0; i < strlen(p); i++)<br />
{<br />
if(p[i] == '|'){<br />
start = true;<br />
from = i;<br />
continue;<br />
}<br />
<br />
if(start)<br />
Name[i-from] = p[i]; <br />
}<br />
<br />
if(strcmp(Name,"") == 0)<br />
exit(1); <br />
<br />
StreamReader reader(Name, System::Text::Encoding::Default);<br />
XmlDocument doc; <br />
doc.LoadXml(reader.ReadToEnd()); <br />
XmlNode^ myNode = doc.SelectSingleNode("Subject"); <br />
cz_sintesupport::insertCase t; <br />
bool resulte = t.InsertCaseXml("testuser", "test123", myNode); <br />
<br />
if(resulte)<br />
exit(0);<br />
else<br />
exit(1);<br />
this code dont compile, but if I write StreamReader reader("C:\\test.xml", System::Text::Encoding::Default);
it works.
if you can tel me abut differents between StreamReader reader("C:\\test.xml", System::Text::Encoding::Default);
and StreamReader reader(Name, System::Text::Encoding::Default); if Name is string type value
thanks
|
|
|
|
|
david bagaturia wrote: char Name[255]={0};
I'm guessing this is not the same as a System::String which is what the StreamReader's constructor is expecting.
|
|
|
|
|
hi
pls
can u tell me?
i want to enter data to two dimensional array(string)
but it appear err.
this err is " Object reference not set to an instance of an object"
code is
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Private Structure CUSTOM_EXPORT
Dim Name_Renamed As String
Dim ViewName As String
<vbfixedarray(255)> Dim List() As String
<vbfixedarray(255)> Dim filter_Renamed() As String
<vbfixedarray(255)> Dim ColHeadName() As String
<vbfixedarray(255)> Dim ColWidth() As Object
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dim udtCustom() As CUSTOM_EXPORT
Dim strCol As Object
Dim i As Short
Dim j As Short
i = 0
Do While r.AtEndOfStream <> True
ReadStr = r.ReadLine
If VB.Left(ReadStr, 8)<>"[Export]"And Len(ReadStr)>0 Then
i = i + 1
End If
Loop
For j = 0 To UBound(strCol)
udtCustom(i).List(j) = strCol(j)
udtCustom(i).ColHeadName(j) = varColHeadName(j)
udtCustom(i).ColWidth(j) = varColWidth(j)
Next
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Err is appeared this line " udtCustom(i).List(j) = strCol(j)"
strcol(j) is "Area Code"
it cannot assign this value
appear err.
thz for all
|
|
|
|
|
What is the definition of r?
|
|
|
|
|
Dim r, fs, w As Object
fs = CreateObject("Scripting.FileSystemObject")
r = fs.OpenTextFile(m_strIniPath, 1)
|
|
|
|