Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

bkelly13

@bkelly13
About
Posts
305
Topics
103
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C2011 ‘vc_sttributes::YesNoMaybe’ “ ‘enum’ type redefinition RESOLVED
    B bkelly13

    David, Re:

    Quote:

    It is somewhat unusual that you need to pull this file into your project... it means that your project may be extending MFC functionality relating to OLE.

    I am not intentionally doing anything with OLE. I can google and see that it means Object Linking and Embedding but in this app I barely use the user dialog. I did get rid of something and now when I capture the Output windows that file is no longer there. I now get a successful build. We are working on moving up to VS 2015 and having similar problems with it on another computer. Now is a good time to perform a bunch of searches and get rid of any detritus that has accumulated over the years.

    Thank you for your time

    C / C++ / MFC c++ visual-studio help question csharp

  • C2011 ‘vc_sttributes::YesNoMaybe’ “ ‘enum’ type redefinition RESOLVED
    B bkelly13

    David, Yes, I have been here for maybe 15 years. I have never had a good opportunity to work with anyone that knows Visual Studio itself well. I have written some rather good code, but have not and do not know how to use VS to its best advantage. Side question: Do you have a good reference I can read or purchase about using Visual Studio itself. Maybe something to help me make a little progress in being a "Visual Studio power user" (for lack of a better term. On to this problem. Now that you guys have egged me on a bit, a very good thing, I discovered: Click on start, computer, properties, Advanced system settings, Environment Variables. Under System variables there is an entry for include and lib. Both of them had three copies of the line that goes something like: C:\Program Files\...\v7.0A\... All three exactly the same. Three in "include" and three in "lib" I have never messed around here and I surmise (careful choice of words here) that this is an artifact of installing multiple versions of VS, one after another, since VS 2005. As of just now, I have messed around here and I deleted two versions of the line and some of my problems were resolved. Now I am back to an older problem where it cannot find occimpl.h. Having learned this,I might be able to fix that problem tomorrow. For local reasons, Must call it a day for today. I do thank each of you for the time you took to reply.

    Thank you for your time

    C / C++ / MFC c++ visual-studio help question csharp

  • C2011 ‘vc_sttributes::YesNoMaybe’ “ ‘enum’ type redefinition RESOLVED
    B bkelly13

    Three people have posted and chewed me out for editing the Visual Studio files. Still, as I perceived this thread, the core problem has been ignored. I had a project that compiled an ran and started getting errors where it should not. Why might I get YesNoMaybe redefined? If the code that has that is prefixed with #pragma once, why might Visual Studio re-read that file that is knows is has already read, then declare the item redefined. The error appears, from my perspective, to be a failure of #pragma once to not do fulfill its intended purpose. I will be adding option /showIncludes and see if I can derive any information from that. Just as a side comment, these kinds of problems would probably be much easier to deal with if I could find anyone else around here that uses Visual Studio. Edit: I edited more information into my original post at the bottom.

    Thank you for your time

    C / C++ / MFC c++ visual-studio help question csharp

  • C2011 ‘vc_sttributes::YesNoMaybe’ “ ‘enum’ type redefinition RESOLVED
    B bkelly13

    Resolution: In the environment variables for include and lib there were three copies of one directory. That lead to the deletion of some other items. I suspect those three copies were the results of multiple upgrades and installs beginning with VS 2005. Windows 7, visual Studio 2010, C++, MFC I posted this on MDSD a week ago and have no replies. The essence is that definitions from within Visual Studio are showing up as being redefined. I do not have direct control over these and cannot find the indirect control / problem / defect that I have managed to insert in the code. Here is the first of a long list of errors in the Output window

    1>c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\
    sourceannotations.h(57) error c2011:
    'vc_attributes::YesNoMaybe' : 'enum' type redefinition

    First, I cannot copy/paste from my working computer to my internet computer so please excuse any typos. If you see one, feel free to mention it as there may be an error, but please do not reject everything out of hand due to typos. I searched for this problem and found several results, including an unanswered question from 2008 here: https://social.msdn.microsoft.com/Forums/en-US/fb887af6-45dc-42b9-94bb-ab4d08a16dd8/64bit-compiler-error?forum=Vsexpressvc It included advice to clean and rebuild. Following said advice I did a “Clean.” Then I closed Visual Studio entirely and ran a batch file I have named clean.bat that deletes 14 types of files in the solution directory and all subdirectories followed by a rebuild. A restart of VS and a build produces the same problem. The titular error and similar errors are repeated numerous times. Edit: to complete the title the entire error is (with a couple of CRs added for readibility:

    1> winnocc.cpp

    1>c:\program files\microsoft visual studio 9.0\vc\include\codeanalysis\
    sourceannotations.h(57) error c2011:
    'vc_attributes::YesNoMaybe' : 'enum' type redefinition

    Much further down in the error list is found: … message_constants.h(50): error C2370: ‘NO_NAME_SPECIFIED’ : redefinition; different storage class That particular file begins with #pragma once The constant is referenced one time only in the entire project, and that reference is within the same file. So,…, I surmise that the #pragma once is not working. Maybe I did something to defeat it, I don’t know. So, …, I added these lines to the start of the file, just below the pragma once

    #ifndef MESSAGE_CONSTANTS
    #define MESSAGE_CONSTAN

    C / C++ / MFC c++ visual-studio help question csharp

  • shutting down servers
    B bkelly13

    Well thats cool. Have not looked at it but: Thank you.

    Thank you for your time

    The Lounge question design adobe sysadmin

  • shutting down servers
    B bkelly13

    Thanks for the link. I did notice this in the study:

    As is common in server-class deployments, the disks
    were powered on, spinning, and generally in service for
    essentially all of their recorded life.

    That makes this study not applicable to the fundamental question.

    Thank you for your time

    The Lounge question design adobe sysadmin

  • shutting down servers
    B bkelly13

    Window Server R 2000 We have several servers with a singular purpose of running a display application. No one depends on them but the developers and the analysts during mission time. I like to turn them off when not in use and over the weekend. Others say servers are designed to be run 24/7. That statement can be re-worded to: Servers are not designed to be turned off. I do not agree with that. I suspect that all computers are designed to run 24/7. Would you design one that can only be run 8 hours before being turned off? So how might a server, or any computer, be designed differently to run 24/7? Or designed to not be turned off? By turning it off we save power running the server, we reduce the total amount of dust and air borne debris moved through the server by the fans, we reduce the run time drives by 2/3 or more, and we save the money that would be spend removing the heat from the room. On the negative side, you gotta push the button and do something else for a few minutes before it is ready. I have had PCs since about 1983, turned them off every night, and never had a failure, drive or component. So, Please, what is your opinion? Please reference any supporting information.

    Thank you for your time

    The Lounge question design adobe sysadmin

  • cannot verify email address
    B bkelly13

    My account settings have a correct and valid email address. Every time I click the option to send an email to verify, none is received. I received email frequently from other places. Who can I contact to get someone to check this out? I do have an unusual site name and get email via that site. The web site name is www.bkelly.ws It was not a problem in the past but I suspect it is a problem now. Who can I contact to chase down this problem?

    Thank you for your time

    Site Bugs / Suggestions help question

  • UDP Server vs Client
    B bkelly13

    I have done that. Here is the first page of results from my good search for “udp sockets” Before providing the list, I do suspect that if I already knew the differences I may well find that information in these sites. As I do not, that information can be rather difficult to pick out. https://www.cs.rutgers.edu/~pxk/417/notes/sockets/udp.html goes right to code, does not discuss the difference http://www.cs.dartmouth.edu/~campbell/cs60/socketprogramming.html does not discuss why there is client and server with UDP https://en.wikipedia.org/wiki/Network\_socket does not discuss https://www.w3.org/TR/tcp-udp-sockets/ Section 9 begins UDP, jumps right into code with no explanation Just for the record, this is the most thorough discussion I have found http://www.binarytides.com/programming-udp-sockets-c-linux/ does not discuss the differences https://www.abc.se/~m6695/udp.html does not discuss https://developer.chrome.com/apps/sockets\_udp does not discuss https://cs.nyu.edu/~bacon/phd-thesis/diss/node32.html does not discuss the differences https://wiki.python.org/moin/UdpCommunication “server” is in the article in only one place discussing a Windows bug http://www.microhowto.info/howto/listen\_for\_and\_receive\_udp\_datagrams\_in\_c.html Starts off with: Suppose that you wish to write a server that implements the … But does not address the differences. References RFC 867 which does not discuss the differences Do I need to continue? I am looking for a discussion on the differences between server and client in UDP operations. Not in the code difference but in the difference in concept between the two. Looks to me like two servers or two clients can well carry on a conversation via UDP packets.

    Thank you for your time

    C / C++ / MFC visual-studio sysadmin

  • UDP Server vs Client
    B bkelly13

    Please direct me to an article that discusses the difference between a UDP Server application and the Client application. So far I surmise that the server starts with no knowledge of where a client might be. It can either begin broadcasting data (this is my current need) or listen for a client to connect. On the other hand, the client must know the address of the server and it either begins listening for broadcasts from the server or it sends a message to the server to accomplish something, such as to solicit some information from the server.

    Thank you for your time

    C / C++ / MFC visual-studio sysadmin

  • verify email
    B bkelly13

    Hello, when I log in the site presents a dialog telling me that my email address has not been verified. So I click the button, and no email. I use outlook and send myself an email, it is received in a few seconds. What might I do to help correct this situation? I have an unusual web site named www dot bkelly dot ws For my email address prepend the base web site with the two characters b2. Yes, instead of dot com it is dot ws, as in Web Site. And that makes for a very short email account. I have been using this site for some fifteen years or more but have only recently been having problems with email.

    Thank you for your time

    Site Bugs / Suggestions com help question

  • how to do these graphics
    B bkelly13

    Thank you.

    Thank you for your time

    The Lounge question com graphics tutorial

  • how to do these graphics
    B bkelly13

    I found this web page from the digg site: Paul Ford: What Is Code? | Bloomberg[^] Scroll down a ways and there is a rather cool interactive graphics showing logic circuits with lows and highs flowing through. I think it is really cool. What language is good for creating this type of a display?

    Thank you for your time

    The Lounge question com graphics tutorial

  • Linking my first DLL
    B bkelly13

    My next step then is: Right click the project level containing the code that uses the DLL and select: Properties -> Configuration Properties -> Linker -> Input There is found the field Additional Dependencies. Currently it contains:

    kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)

    edit in:

    Common_Utilities.lib

    and click OK. The project built successfully. Great! I try to run it and get a dialog stating:

    Quote:

    The program can't start because Common_Utilities is missing from your computer. Try reinstalling the program to fix this problem.

    Ok, going back to: Solution -> Properties -> Configuration Properties -> General and field: Additional LIbrary directories I find this text:

    Quote:

    E:\CODE\Common_Utilities\Debug;%(AdditionalLibraryDirectories)

    That is indeed the path of the directory that contains the DLL. I don't understand why it says the DLL is missing. Good grief, I really wish I knew someone that knows this stuff and could sit here and say: Right there, change that.

    Thank you for your time

    ATL / WTL / STL help debugging question lounge

  • Linking my first DLL
    B bkelly13

    I had not found that one, but went through it. I read the instructions, adapted the steps to my solution as I understand them, and the project in the same solution that used the DLL worked perfectly. That is cool. However, I noted something. From that walkthrough web page is this:

    Quote:

    To use in the app the math routines that you created in the DLL, you must reference it. To do this, select the MyExecRefsDll project in Solution Explorer, and then on the menu bar, choose Project, References. In the Property Pages dialog box, expand the Common Properties node, select Framework and References, and then choose the Add New Reference button. For more information about the References dialog box, see Adding references in Visual C++ projects.

    When I arrived at the dialog to add a reference the only allowed option was the DLL in the same solution. I created another solution in another directory to test using the DLL from another directory and solution. I navigated to same place within the IDE and the new solution with:

    Quote:

    right click solution -> References -> Add New Reference

    The response is "No items found." The dialog offers no method of discovering a DLL somewhere else on the computer. There is still something simple I am missing. How does one specify an arbitrary DLL to use as a procedure or class resource? Edit: From the new solution I tried this: in the dot cpp file, console app, I added this line:

    #include "E:\CODE\Common_Utilities\Common_Utilities\Common_Utilities.h"

    It is a reference to the h file from the solution where the DLL was created. In that new console app I called a function from the DLL. Then the following steps were taken:

    Quote:

    Right click on solution followed by: Properties -> configuration Properties -> Linker -> General -> field Additional library directories.

    In that field I edited in the location of the dll from that dll solution. The compile succeeds but the link continues to fail with error LNK 2019 unresolved external symbol and __delspec(dllimport)

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    ATL / WTL / STL help debugging question lounge

  • Linking my first DLL
    B bkelly13

    I am trying to build and use my first DLL. After editing in the source code and building the Debug directory contains the .dll, the .lib and four additional files. A console app is created in the same solution but another project and built without referencing the dll. The .dll and .lib are copied to the solution directory. In the console app I added:

    Quote:

    #include "E:\CODE\Common_Utilities\Common_Utilities\Common_Utilities.h"

    Ctl-F7 produces a successful compile. A build produces this error.

    Quote:

    Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Get_Text_For_Error_Code(unsigned long,wchar_t *,unsigned int)" (__imp_?Get_Text_For_Error_Code@@YAXKPA_WI@Z) referenced in function _wmain E:\CODE\Common_Utilities\Test_Get_Text_For_Error_Code\Test_Get_Text_For_Error_Code.obj Test_Get_Text_For_Error_Code

    After some searches my latest attempt to fix is by: Right click solution -> Properties -> Linker -> General -> Additional Library Directories There I edited in the path to the DLL. No help. This is my first DLL attempt and I strongly suspect there is something simple I have missed. Please point me in the right direction.

    Thank you for your time

    ATL / WTL / STL help debugging question lounge

  • DLL article question Resolved
    B bkelly13

    OK, I see that now. And I see why he did that. I often have a difficult time seeing the obvious. Thank you for pointing that out and taking the time to reply.

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    ATL / WTL / STL question csharp c++ visual-studio com

  • DLL article question Resolved
    B bkelly13

    Windows 10, Visual Studio 2012, C++, DLL I am working on understanding DLLs and reference this article: http://www.codeproject.com/Articles/28969/HowTo-Export-C-classes-from-a-DLL?msg=5204076#xx5204076xx In there I find the phrase:

    typedef struct tagXYZHANDLE {} * XYZHANDLE;

    I downloaded the code and found only that one instance. I understand tyepdef and struct, but those empty braces throw me. Especially since I found only that one instance. Please point me to something that provides an explanation for what this is doing. Is there a particular name for that type of declaration?

    Thank you for your time

    ATL / WTL / STL question csharp c++ visual-studio com

  • DLL Questions
    B bkelly13

    1. I expected that and thank you for the confirmation 2. I suppose that is not a big problem, may make for a large project, but that will have to do. 3. I was hoping for something easier, but this also is what it is. Thank you for taking the time to reply.

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    ATL / WTL / STL c++ csharp visual-studio com tutorial

  • DLL Questions
    B bkelly13

    Windows 10, Visual Studio 2012, C++ I have several utilities to put in a DLL and some questions about how to do it. If the utilities put in a DLL are built without MFC and without ATL, can they be used by those types of projects? Can the products of multiple projects, within a single solution, be put into a single DLL? So far, my limited experience indicates this is not the case. Can Visual Studio show the contents of a DLL? I don’t want a reverse compiler/assembler, I just want to see the signatures of the functions contained by the DLL.

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    ATL / WTL / STL c++ csharp visual-studio com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups