Nerseus
*Experts*-
Posts
2607 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Nerseus
-
I would ask yourself what kind of design you're doing and how large a project it is going to be. For smaller projects without much visual design, you could use just about any editor you want (I love UltraEdit for my hand-tweaked HTML). For larger projects, you'll likely want a larger tool. They come with a price - financial and learning curve. Most of the "high end" tools come with a lot of extras. The big tools usually are meant to be worked in one of two modes: lots of visual design or lots of tweaking. If you want Visual Design, I'd look at editors with good WYSIWYG features. If you're doing business apps (forms and such), you might do better to hand-tweak your code since there is probably going to be more "code" than HTML (design and layout "code"). Of course, products like Visual Studio try to let you do both by having a design page and "code behind" file, but you'll still get that "feature" of Frontpage that reformats your HTML (your code-behind should stay as you leave it though). That part always bothered me, too, but if you want the visual designer to work, it's got to tweak the code. It's a tradeoff. -Nerseus
-
I don't know about Access, but in SQL Server we had to define out relationships manually. This was because we use stored procedures to return multiple tables at once. It wasn't as simple as "SELECT * FROM Table1" so I don't think there could be any built-in relationship mapping for us. For Access, if you're doing single table selects it might work - not sure, but try Derek's idea :) -nerseus
-
Need Code to Link Tables into a Query
Nerseus replied to JDYoder's topic in Database / XML / Reporting
Check out the tables sysreferences or sysforeignkeys and sysobjects. sysobjects will get you the table name from an id. You'll have to do some digging to see which of the other sys* tables you need. To do this, you'd have to make some assumptions. For example, do you do inner or outer joins? If you do inner, you assume there's always at least one child row in every table. It might be easier to create your own metadata table(s) to handle these complex, dynamic joins. You could map tables there manually along with relationship info (inner, outer, etc.). I would guess this might be better since (I hope) you're limiting the tables and columns that can be selected from (reports?) and thus your metadata table won't be that big. -ner -
Where to redim them? I have no idea... what makes sense for your application? Maybe in Main you want to call a function to initialize the globals? And using a Class with static variables/properties is the same as using a Module, but a module is more "sloppy" since it's not really a .NET standard. Behind the scenes (I'm guessing) the compiler is creating a class and static properties for you. -Nerseus
-
You'll have to define Nest's size for each instance of HereWeGo. Assume you want 10 of each: For i = 0 To HereWeGo.Length - 1 ReDim HereWeGo(i).Nest(9) Next -Nerseus
-
You could create a simple setup program or use Winzip to create a self-extracting EXE. Otherwise, no, there's no way to get a DLL embedded into your EXE without some work. You could, theoretically, embed the DLL. At runtime you could get the DLL as a resource and write it to disk. I'm not sure if that would work 100% or if you'd need to also load the DLL yourself. if you're using C++ you're a bit luckier as you can use LoadLibrary to load a standard DLL yourself, though I don't think a .NET managed DLL would work like that. -ner
-
No difference, really. I suppose you *might* say compiling just compiled the object files while Building actually linked them as well (which builds the final EXE or DLL). They're usually used to mean the same thing though. -nerseus
-
You might try using Groups. You define a group (or multiple groups) in your regular expression string. After you parse you string, it returns multiple Group objects - you can get each string by name that way (much more readable). You'd want 5 groups for your example, maybe more once you learn their power. Now, the niceness of groups comes at the expense of speed. If you were to do the same logic in code using IndexOf and Substring, it would be MUCH faster, but much less readable. Having parsed some large log files before, I know that sometimes speed is more important. At least you have options :) -nerseus
-
Try this: // s is the hex string string s = "C2"; // b will be the binary string string b = Convert.ToString(Convert.ToInt32(s, 16), 2); -Nerseus
-
Arrays must be dim'd before use. Assuming you've declared them something like: Public g()() as Int32 Then you must redim both dimensions: ' ReDim the first element of the jagged array ReDim g(5) ReDim g(0)(1) ReDim g(1)(2) ReDim g(2)(5) ReDim g(3)(3) ReDim g(4)(27) ReDim g(5)(42) If you don't really have a jagged array, but just a multi-dimensional array (declared with "Public g(,) As Int32") then you just need one ReDim with both dimension's sizes, as in: ReDim g(5, 42) -Nerseus
-
Don't forget to multiply them in the correct order - matrix math is not communitive. -Nerseus
-
I don't think anything in .NET will do the first 3 items for you. The grayscale could be done relatively simply if you want a simple method (just read each pixel and convert to grayscale - slow, but it would work). If you want more indepth imaging functions and don't want to write them yourself you'll probably want to buy a library. ULead used to offer a package but I've never used it. I'm sure there are others. You might also look for an ActiveX-based library in case you can't find a .NET version. -Nerseus
-
You must be calling AcceptChanges somewhere in code. -Nerseus
-
If you want cheap and relatively easy, I'd suggest Milkshape or Anim8or. They might seem intimidating at first, but there are tons of tutorials online. For pure 2D graphics, I prefer Paint Shop Pro. I picked up version 8 at Costco (a big store here in the US) for $40 after rebate (normally $120 through Jasc Software). Learning any new application, especially anything complex enough to do 3D graphics, is going to take some time. I'd plan on spending a couple of days (if you have only two hours or so per day) just getting used to the interface of a new app before you try any serious work. This assumes you want to build something specific and not just tweak existing graphics. -ner
-
I'm definitely a plan first, code second kinda guy. I definitely USED to be in the first category, but I found I re-did a LOT of work and I eventually got tired of cutting and pasting and generally making a lot of spaghetti code. -Ner
-
bungpeng, I'd also check out the Microsoft forums (msnews.microsoft.com in your favorite news reader, even OutLook Express). As divil is saying, there really aren't that many mobile developers - finding help here, or on most public forums is going to be difficult. As far as Mobile-specific questions, I'd be surprised if anyone would be able to offer much help. I'm not discouraging your from asking, just trying to set your expectations to a reasonable level :) Now, if you're programming a mobile ASP.NET page and you need help with binding, for instance, then you're more likely to get a response since it *might* be the same code-based solution whether it's mobile or not. Just be sure and mention in your question that you're on the mobile platform in case there are any differences. -Nerseus
-
As long as they keep fixing them and making them better (there are still a number of troublesome bugs), let them come out every year (or sooner)! Anyone remember VB4? By the time my company ran through the first phase of conversion from a VB3 project, they were already up to VB5. That was a whole new, major release (using version number as a "major" release). I believe it was a little under a year for that one, too. .NET evil? Maybe. I think it's fun, as do most of you - or else we wouldn't be here talking about it :) -Nerseus
-
There are systems like GoldMine (which is for call tracking, not accounting) that do allow developers to hook in, in a limited fashion. I believe GoldMine also has a team of developers "for hire" and contracts with other 3rd party companies to do development as clients request it. I'd assume that there's also an accounting package/company that offers a similar service but I don't know of any offhand. -Nerseus
-
Maybe you could post a sample question, one you think would go in the Mobile forum if we had one? I'd guess that 90% of the questions you'd have wouldn't be Mobile-specific. Plus, if you're interested in seeing replies to your own posts, you can always subscribe to the thread so you don't have to filter through all the posts in General. -Nerseus
-
I've not tried this in C++, but if it's the same type of Select as other languages, you'll want to change your Select line to this: DataRow *foundDirRows[] = dataset->DIRECTORY->Select(String->Format("name = '{0}'", fileInfo->Directory->Name)); Normally the Select method's first param, a string, is the filter. The second param is a sort. It appears as though you really want to use String.Convert to piece together your filter. -Nerseus
-
Then I'd use the DataTable's Select method with a filter. -Nerseus
-
Again, what's the end result of your finding a row? Do you need the index of the row, a reference to the DataRow, or...? -Nerseus
-
What do you need to do after you find the row? If you need the index, you can use the DataView's Find method. You can do it directly on the datatable by using: ds.Tables[0].DefaultView.Find If you just need a reference to the row that matches, use the Select method: DataRow[] matchingRows = ds.Tables[0].Select("filter goes here"); if(matchingRows.Length > 0) { // Found at least one match: // matchingRows[0] is the first match } Select uses the exact same filtering as a DataView but is much faster if you just need the resulting row. Select doesn't support a Find method though, so if you need the index of the row, it won't work. -Nerseus
-
What do you mean by a linebreak in a listview? Are you printing the contents of the listview? -Ner
-
Trying to find a way reduce real estate on my form
Nerseus replied to BlueOysterCult's topic in Windows Forms
There are lots of possibilities here, Blue Oyster. For now, you might try a listbox with a textbox (just a guess). I'm assuming you need a text field for them to enter their guess. After they press the "Guess" button, add the text of the textbox to the listbox (it will go at the bottom). It will scroll, but you'll have to make the listbox scroll to the bottom so that the later entries are visible. That's just one option, you could also use a grid, a panel control with AutoScroll set to true, or more. If you try any of these suggestions and need help, let us know. -Ner