Compiler Creates Culture Folders For A Not Localized Project
May 31, 2012
I have a winform application written with vb2010.I changed the "Language" property of a winform of my application to german, only for testing purpose. I built the application and in my indebug folder it was created a new de folder with the localized resource file "appname.resources.dll". Then I set back the "Language" property to (Default) and "Localizable" to FALSE and built again the application, but the de folder with its appname.resources.dll were created again. I have controlled each form in my application, the My Project setting too,nothing points to any other culture. I deleted the whole debug folder, but after each build, I get always the de subfolder.I cannot understand what is changed in my application now: why does the compiler create a localized resource if I set back the form properties?I repeated the same for a new culture (afrikaans), to discover any changes in the form properties: I found nothing that could help me, but now I get two subfolders.: de and af
A weird thing just happened. I created a program wich creates folders and now when i want to "save as" an excel document in a folder created by my program this error occurs:[URL].. But this only error occurs if i try to save as an excel document
Say that i have the following code that parse about 20k records from the DB.
Code #1
vb.net While reader.Read() list.Add(If(Integer.TryParse(reader(0).ToString, 0), Integer.Parse(reader(0).ToString), 0)) End While
And then another code which does the very same thing but it seems to be a little cleaner.
Code #2
vb.net While reader.Read() Dim storeowner As Integer = 0 Integer.TryParse(reader(0).ToString, storeowner) list.Add(storeowner) End While
This is what i am confused about; does the compiler creates a new variable automatically when i use the if statement without strictly declared variable? What approach is better in sense of performance?
The issue is in a windows based client-server application.In the GUI, the system date value is converted to string and is stored in a text box, which is displayed while the dialog gets loaded.How to change the format of date so that when the form loads the date is displayed in en-US culture irrespective of the regional setting of the system(for eg: regional setting of the system is "fr-FR").
Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?
When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?
I've recently started running into DotNET difficulties with newer HP and Dell systems that are pushing x64 processors and operating systems onto a totally unaware end-user market, so suddenly a lot of work I've done in VB.NET is going to ____ in a handcart; specifically all the work I've done with 3rd Party tools that are only available in x86 or x64 builds and not DotNET Native builds for any CPU. The biggest problem is that all the DLL File Names, in-code Namespaces, Classes, and Methods are totally identical - just one version is compiled for 32 bit and one for 64. What I need to do to fix this is provide some #If compile conditions that alter the paths of existing references based on the Build Configuration, so that when I'm compiling for the x86 platform it references C:DBAPISQLitex86System.Data.SQLite.DLL but when compiling for x64 it references C:DBAPISQLitex64System.Data.SQLite.DLL.
I don't have a problem writing compile conditions, but can't figure out how to alter the reference paths before the compile begins, short of manually removing one reference and adding the other every single time I need to do a dual-platform compile.
I'm migrating data from an old laptop to a new laptop, including some vb.net projects in visual studio 2008. But when I try to open some of them on the new laptop, I quickly get a dialog stating that the vb compiler has crashed and asking me if I want to close, debug, or check online for solutions. Visual studio then, frustratingly, closes.The projects don't crash when opened on the old laptop, and other migrated projects open without crashing. So it must be some property of the projects that becomes corrupted by moving them.
Error Details:
Problem signature: Problem Event Name: APPCRASH Application Name: devenv.exe Application Version: 9.0.21022.8
[code].....
The old laptop is windows xp and uses visual studio professional. The new laptop is windows vista and uses visual studio team. The 'migration' was a straight copy paste of the source files.
VB.NET has this rather annoying limitation which caps compiler warnings reported at 100.vbc : warning BC42206: Maximum number of warnings has been exceeded.This makes things rather frustrating when trying to size up the amount of effort that would be required to comply with VB.NET best practices, such as enabling Option Strict.
I'm trying to move a project from my old laptop to my new laptop. But I'm running into a problem: whenever I open the project on my new laptop, it crashes!I can open other projects on my new laptop, including some copied from my old laptop. I can also open the project in question on my old laptop. So the problem must be some combination of things in the project, and the fact that it was moved
I'm working on a larger VB application (framework v3.5) where the compile time continues to get slower and slower the larger it grows. It currently takes about 7 minutes to compile just the extensions project. We have other similar projects in C# that don't experience the slow compile time.
How is conditional compilation controlled for a VisualBasic web? For a VB Windows app, I put a conditional variable in Project > Compiler tab > Advanced > Custom controls.
How in a VB web app is a conditional compilation variable assigned that can be accessed by all the files of the web app?
PROBLEM #1: I have a program that accesses several XML files that are located in a subfolder called "xmlfiles." This folder is a sub-folder in my project. I am using "Application.Settings" to store the locations of the XML files. For example, I have an entry for "JobsXML" that has a string with the file path of the XML file to load. To get these files to load, I had to use relative references: The path settings for "JobsXML" is "......xmlfilesjobs.xml"
I have to go up 3 directories because the files are in "debugin" during design. This will not be the case at runtime. This arrangement works fine in the editor, but when I make a "ClickOnce" package, the relative path will no longer work for installed applications. The directory will be different.
How can I setup my code so that the "xmlfiles" subfolder will be correctly used at runtime? I need to be able to run this from my project folder under "My Documents/Visual Studio 2005/Projects/etc..." and also, I need it to work from the runtime directory that the user installs the program to. So if the user installs the package to "C:temp" then the code should use the setting for "JobsXML" by going to "C:empxmlfilesjobs.xml."
PROBLEM #2: There is an attribute in some of my XML files that is also, a relative file reference. I have another subfolder called "images" that also resides in my project. This folder contains images that are loaded at runtime. In my XML file, each node has an attribute, "filepath" that has a value of "......imagesfilename.jpg". I also need to be able to access this relatively, just like the XMLfiles I mentioned in PROBLEM #1.
I have tried different combinations of StartupPath, Path.Combine and a few others, with no success. I am new to this so I could use some sample code to put this together correctly.
Because I need to get all the characters of the alphabet OF AN ARBITRARY (variable) LANGUAGE, and that in the correct ordering sequence.
How can I do that without knowing the alphabet of every possible culture/language? System.Gobalization.Cultureinfo for example has information on date format, and a sorting method, and codepage info. But not info on the alphabet itselfs. Forthermore 'A' to 'Z' ordering iterating won't do, because German for example has characters such as ÄÖÜ, which are after 'Z' in the codepage numbering, but follow after aou when sorting.
Can I somehow use the codepages to get all the characters, and sort them somehow ? By 'all the characters' I mean all letters, including numbers, but not punctuation marks. And possibly only upper XOR lowercase.
Imports System.CodeDom.Compiler Public Class iCompiler Public Shared Sub GenerateExecutable(ByVal Output As String, ByVal Source As String, ByVal Icon As String)[code].....
This is a question about creating localized resources for VB projects.
I can easily add resource strings to the file resources.resx. To localize these strings, I need to create a localized version of the resource file, for example resources.de.resx for German.
I actually created a localized resource file by hand in the "My Project" directory and tried to added it to the project (via "add existing item"). To my surprise, it copied the file down into the main project directory.
Normally I would keep original resx file and the localized resx file in the same directory.
Am I missing something, or is the resource support in "My Project" not thought through with regard to localization?
I want to be able to add a folder (and inturn, all of it's contents including subfolders) to a setup project. I can manually add a folder, then manually add all of the files for that folder; but this is a NetHelp folder with lots of subfolders and files.
Is there a way to tell the setup to add everything in a folder to the setup files to be distributed??
I want to create personal folders during installation. I did the following steps:
Right click on your setup project -> View -> File System Right click on node "File system on
[Code]....
I know the above steps are correct and should work because i did it in the other application (solution) and worked fine. When i did same exact steps (of course i changed the folder name to be created), the application gets deployed but when i install, i don't get the Personal Folder under Documents? I wonder why did it work with my first solution and didn't work with the current one!
at I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.how I can display folder contents in VB.net and the code worked but couldn't figure out how to create the arrays and display only folders within folders starting with "ad_".
System.IO.DirectoryInfo and System.IO.FileInfo to be used for getting the folders.A literal control can be used to create javascript arrays in ASP.NET. These js arrays can then be used on the client side.
This error first appear to occur randomly. Steps to recreate:Open Visual Studio and load a solution (some files automatically opened) - this is when the problem occurs Close all open files Restart visual studio and load solution (no issues)Open Exactly the same files again, restart visual studio and load solution so files open automatically (problem occurs!)
However, when trying to narrow it down to a single file (that is automatically opened when the solution is loaded), I couldn't reproduce the problem. Now with all the files open again the problem doesn't occur!!! So it looks like it is fixed - though this happened before and eventually the issue came back.
I think it is to do with one of the user controls with DevExpress controls on it - when the error occurs, the designer displays the error. Though I can't reproduce it at the moment to confirm that.
It appears that when IO.Directory.GetFiles tries to read a folder that it doesn't have access to it throws an exception & stops reading. Is there any way to have skip those folders & continue reading the rest of the folders?
If I look at the IL that is created in Linqpad for the two following code snippets, I wonder what happens here.
In c# int i = 42;
results in the following IL code
IL_0000: ret
whereas in VB
Dim i As Integer = 42
it is
IL_0000: ldc.i4.s 2A IL_0002: stloc.0
Apparently, the c# compiler understands the the value is never used and thus simply returns nothing. In VB.NET the actual code is translated.Is that due to differences in compiler optimization or is there anything else at work?
Update: Just to clarify this - I just enter this one line into LinqPad and look at the IL it creates (most definitely by running the respective compiler). There is no program.
I use the code below to fill the list box and it works great. But i need it to only look in the \Software and \Software\FolderName Foldername could be any folder in the Software folder i need it to get all the .exe from software folder and only one more folder deep no more.
I need help with file enumeration. I'm trying to create a program that can list files, folders and sub folders locations in a log file for diagnostic purposes. After it searches it can open notepad and display the results. The problem I'm having is that I'm a beginner and not familiar with file enumeration.
I have a website with three domains .com, .de and .it
Each domain needs to default to the local language/culture of the country. I have created a base page and added an InitializeCulture
Protected Overrides Sub InitializeCulture() Dim url As System.Uri = Request.Url Dim hostname As String = url.Host.ToString()
[Code]....
But of course the InititalizeCulture then overrides whatever button selection has been made. Is there any way that the InitialCulture can check whether a button click has occurred and if so skip the routine?
could not find any resources appropriate for the specified culture ot the neutral culture. make sure "mysql.data.mysqlclient.properties. resourses. resorses" was correctly embeded or linked into assembly "mysql.data.CF" at compile time or that all the satalite assembelies required are loadable and fully signed.
I have very simple project in VS 2005 (close to hello world). This project is referencing few other DLLs that I have built on the side using command line scripts. These DLLs are fine and working perfectly. None of these DLLs are defining a specific 'Locale', so they default to locale = 'null', and everyone seems to be pretty happy with that.However, one of these DLLs, say XYZ.dll, must link/reference a third party DLL which defines locale= 'Neutral'. I can see that quite clearly with ildasm:[code]If I remove the third-party dll reference from my XYZ DLL (removing some code then not linking against it), I can compile my basic VS project without any problem. The problem is that I do need to link against this third-party DLL and would like to use Visual Studio.Does anyone know about this "Culture name not supported" error?
I'm wondering, Windows is installed with a current language... Isn't it possible to get those strings from a file? On a XML/INI/Database-base? Something like:
Dim LANG As My.Computer.Culture.Language = My.Computer.Culture.Language.CurrentLanguage Dim Cancel As String = LANG.Cancel Debug.Print(Cancel) 'Output: Annuleren