|
actually, i'm reading "The C# Programming Language - Fourth Edition" by Andres Hejlsberg, Mads Torgersen, etc
but, i'll try to look to your suggestions
thx
|
|
|
|
|
Well that is a bit more advanced, but an excellent reference. It was not clear from your question what actual level you are at.
|
|
|
|
|
i actually learned some basics on C++ and seems like it doesn't really different with C#, so i wanna learn windows programming in both languages
|
|
|
|
|
No they are very different. Try learning both together and you will get very confused. Stick with C#, it is much more intuitive.
|
|
|
|
|
but wasn't C++ is used for many big applications? for me, i like them both... also java and C-like langs...
|
|
|
|
|
Yes, but that has nothing to do with your question.
|
|
|
|
|
|
|
|
i google-ed before i ask here but seems like it doesn't much tutorials for this
|
|
|
|
|
I'm writing an ActiveX Controller to expose to COM and will plan to write an installer for it. I'm using some models for an ActiveX that used Java for HTML inputs. It was a model written for C#. I'm a beginner with the language. I'm a bit confused on how to tell the program that it should get its data from the control source of the report in MS Access (Office 365). I'm also not certain which methods should be private or public in the code when it passes information back and forth between the programs.
|
|
|
|
|
Active X has been dead for decades. Why are you doing it this way?
Access is also pretty dead TBH
|
|
|
|
|
For Access or other Office applications to use a custom library, it would have to be exposed via COM.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You don't need to use ActiveX for COM. .NET supports COM out of the box with the aid of the COMVisible[^] attribute.
|
|
|
|
|
I understand it needs exposure to COM, but I think the question here is more about how to reference Access as the source of the data the control uses to give its output. Specifically, how it would be referenced in a C# code.
|
|
|
|
|
What would you suggest in place of Access in terms of working with databases?
Surely it must have wide use if it is continually updated in Office releases.
Is there software that gives you the ability to generate queries and reports with the same capabilities in formatting.
|
|
|
|
|
I'd recommend you the SQL Server. Its Express edition is free.
|
|
|
|
|
Access is useful if you have no programmers and want a simple DB with a simple UI. But it's pretty dead technology overall
|
|
|
|
|
I do agree after reviewing some more information on this topic. I think I found a better solution than ActiveX or some of those older methods. Visual Studio has an RPLC reporting add-in that allows you to generate custom fields using C# behind the setup and simply imports the data from the existing datatable structure via OBDE.
|
|
|
|
|
Since you never said what this ActiveX does, it's interesting to see how one builds a system to support it.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Sorry. That portion may not have copied into the post.
The input for the program would be the string from a field in the report in MS Access.
The program takes the string and uses the QR Coder Nugent Package to create a QR code image.
The program will output the QR code image as the object that is printed in the report.
|
|
|
|
|
There is no clear reason why you think you need "ActiveX" in this scenario.
C# can read MS Access; create the QR image; and store / print "it".
The "Access report with the QR (string)" is some byproduct of Access.
Connect to data in an Access database - Visual Studio | Microsoft Docs
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Yes. I found an example of what your talking about here. Good suggestion. Thanks.
|
|
|
|
|
Hello Everyone!
I am C#/ASP.NET new learning
And my english is very bad (I am Taiwanese)
My Boss give me a .NET test
the problem is like say : Use swtich(expr) expression can action on byte?, long?, String?
My answer is
byte => OK, long => unknow, String => OK
But my boss give me answer is
switch(expr) expression need is integer type / integer expression
Os long and string is not use on switch
After I fund answer in internet like
Switch Statement in C# - GeeksforGeeks
The first paragraph: The switch expression is of integer type such as int, char, byte, or short, or of an enumeration type, or of string type
Can someone talk me true answer?!
I vary appreciate, thank your
*I can not ask on Chinese Webpage beacuse i afraid my boss see this
|
|
|
|
|
it's possible your boss is using the wrong words: there are two types of switch in c# And he may be getting confused.
Strings, integers of all forms (including long), chars, enums are all legal in C# switch statements: C# switch statement | Microsoft Docs[^]
With switch expressions, the range is even bigger: switch expression - C# reference | Microsoft Docs[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|